VPN/Proxy erkannt
Es scheint, dass Sie einen VPN- oder Proxy-Dienst verwenden. Bitte beachten Sie, dass die Nutzung eines solchen Dienstes die Funktionalität dieser Webseite einschränken kann.
-
Ich weiß nun die Antwort.
Es gibt zwei Arten wie die action gesetzt werden kann
1. standard: urls enthält eine Liste von strings
2. erweitert mit intervall: urls enthält eine LIste von objekten { url : "your url here", int : "0000-0000" }
TRV und Motion unterstützen bei Action ein Intervall mit Uhrzeit von bis "0000-2000" bedeutet zum beispiel von 00:00Uhr bis 20:00 Uhr
-
Fast alle Shelly gen 1 Geräte unterstützen das setzen von /settings/actions über die API. Leider der TRV nicht.
https://shelly-api-docs.shelly.cloud/gen1/#shelly-trv
Er liefert jedoch per GET /settings/actions die Einstellungen die man per Web-UI gemacht hat (siehe unten)
Hat jemand eine Idee wieso man die urls nicht wie bei anderen via REST API setzen kann?
z.B.:
GET '/settings/actions?index=0&name=' + name + '&enabled=true&urls[]=' + url;
{
"actions": {
"valve_open": [
{
"index": 0,
"enabled": true,
"urls": [
]
}
],
"valve_close": [
{
"index": 0,
"enabled": true,
"urls": [
]
}
]
}
}
-
Hallo,
ich habe ein Problem mit aktivierter authentifizierung bei gen 2 devices.
Bei einer genau einer Route funktioniert die Authentifizierung nicht, bei anderen schon:
/rpc/Script.SetConfig
Die Implementierung funktioniert bei den anderen routen problemlos, nur bei dieser nicht.
Meine Implementierung habe ich mit dieser verglichen und sie ist quasi identisch:
https://github.com/iobroker-commu…ol/base.js#L136
Hat jemand eine Idee?
Siehe auch
Siehe https://shelly-api-docs.shelly.cloud/gen2/General/Authentication
-
I do not have any additional skripts running.
All I do is uploading a skript from within node red using the api.
Then I enable the script via the api, too.
After rebooting the skript is not running.
I will do further checks after returning from vacation
-
-
Hi,
I uploaded a script to my I4, enabled it and started it.
Everything worked really nice until I rebooted the I4.
After reboot the script is stopped and not automatically started as described in the documentation.
Any ideas? Thanks in advance.
The script just sends all events to a server in the local network….
let CONFIG = {
URL: 'http://192.168.178.200:10001/callback',
SENDER: '192.168.178.235'
};
if(CONFIG.SENDER === ''){
Shelly.call(
'Shelly.GetStatus',''
function (res, error_code, error_msg, ud) {
let status = res;
// print(JSON.stringify(status));
CONFIG.SENDER = status.wifi.sta_ip;
print('SENDER = ' + CONFIG.SENDER);
},
null
);
}
Shelly.addEventHandler(
function (event, userdata) {
if (typeof event.info.event !== 'undefined') {
let eventType = event.info.event;
if(eventType !== 'btn_up' && eventType !== 'btn_down'){
CallNodeRed(event)
}
}
else{
return true;
}
},
null
);
function CallNodeRed(event) {
print('CallNodeRed: ' + JSON.stringify(event));
let data = {
event: event,
sender : CONFIG.SENDER
};
let body = JSON.stringify(data );
Shelly.call(
'http.request', {
method: 'PUT',
url: CONFIG.URL,
body: body
},
function (r, e, m) {
},
null
);
}
Alles anzeigen