18 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
0
answers
85
views
IoT device Shelly JavaScript engine cannot sort arrays
I have very limited knowledge of JavaScript. Trying to script my IoT device with the help of a known LLM, I boiled down my issues to this:
let testArray = [3, 1, 2];
print("Does sort exist?",...
1
vote
2
answers
1k
views
Shelly get voltage
I am struggeling to get the current voltage out of Shelly via script.
I added an event, whenever the power changes, the current voltage should be printed. But result is always undefined.
Shelly....
0
votes
1
answer
1k
views
Script for Shelly Pro 2PM that overwrites a schedule
I am trying to create a script for Shelly Pro 2PM that overwrites the following schedule:
if (sunrise +15min) > 5am : Turn on @5am, Turn off @ (sunrise +15min), else: do not turn on @5am ...
0
votes
1
answer
823
views
Telegraf config for shelly3em/status
I am collecting power consumption data using a shelly 3EM. I don't like the MQTT approach, as this disables the cloud data feature. Thus, I want to connect to the shelly "status" endpoint ...
3
votes
1
answer
2k
views
Turn on shelly with authentication via script
Shelly Plus 1 PM should turn on Shelly 1 that is protected with username and password.
I have a Shelly Plus 1 PM running a script. At some point another Shelly 1 should be turned on for 10 seconds. As ...
1
vote
1
answer
92
views
Noob Question: How do I access this value in JavaScript? [duplicate]
I've never used JavaScript before and I'm stumped about how to access a particular value in an Object.
The JSON looks like this:
{
"payload":{
"params":{
"...
2
votes
0
answers
1k
views
Integrate between Shelly and Telegram via Webhook
I have tried to integrate between Shelly and Telegram.
In Telegram there is an option called webhook that mean , if Telegram bot received an message that message will automatically move to another ...
-1
votes
1
answer
386
views
Shelly - ajax api call return always error
I've developed a graphich interface for check all smart device in my home, but when I try to make a ajax call to shelly api for check the device status I get always error. If I utilize postman I able ...
0
votes
1
answer
292
views
Shelly Plug S with iobroker per MQTT no Acknowledged when Relay0.Switch is changed
if i set switch from false to true the relais switches on but the state of the switch will reset back to false after few seconds.
To switch the relais off via iobroker i have to switch it on and off ...
0
votes
1
answer
1k
views
Sending request with scriptable app to Shelly cloud
After connecting and wiring the Shelly2.5 with my shutter, trying to connect it with Siri.
Decided to do this with Scriptable app and then connect Siri commands to it, so it will run.
Currently have ...
1
vote
0
answers
88
views
How to write a Haskell program that initiates and can then run commands in a nix-shell environment?
I would like to initiate a nix-shell (if unfamiliar with Nix), this can be thought of as a bashs hell that loads a particular environment, somewhat expensively). Once initiated as a separate process, ...
0
votes
1
answer
503
views
MQTT Error BR_ERR_BAD_VERSION on Shelly 1PM with Tasmota
I try to connect a Shelly 1 PM smart power relay to a managed MQTT broker.
The firmware on the device is a custom-built Tasmota 8.3.1 from the dev branch with USE_MQTT_TLS enabled. The port is set ...
2
votes
0
answers
735
views
Run a command via ssh with Shelly/Turtle
Given a command:
ssh user@host command
where command, when executed on the remote host host, should be:
somecmd --option1 'option value with spaces' 'arg1 with spaces' 'arg2 with weird chars, like ('...
0
votes
1
answer
68
views
How can I handle multiple lines of output when running external processes with Shelly?
I'm looking for a function of type Text -> [Text], essentially that would split text based by newlines. However I can't just split on \n as this could be escaped for example as in \\n, I'm not sure ...
3
votes
2
answers
778
views
Shelly: Convert String to Shelly FilePath
I need to execute the cp_r function from the Shelly library to copy a to b.
However,
import Shelly
main = do cp_r "a" "b"
yields
Couldn't match expected type `Shelly.FilePath'
with ...