Skip to content

Shelly Group Switch Script Loop #20

Description

@Kai9555

Hallo zusammen, nachdem ich alle Daten der Hue Bridge in das Script eingetragen habe, kann ich die Hue Gruppe steuern (An und Aus). Jedoch ist aus irgend einem Grund, den ich bis jetzt noch nicht finden konnte, das Script im Loop. Die Gruppe schalten sich etwa alle 60s an und und dann nach etwa 60s wieder aus.

Das Log im Shelly aus 2min Aufzeichnung sieht so aus:

08:44:00 shelly_notification:163 Status change of switch:3: {"id":3,"aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1714113900,"total":0.000},"ret_aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1714113900,"total":0.000}} 08:45:00 shelly_notification:163 Status change of switch:2: {"id":2,"aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1714113900,"total":0.000},"ret_aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1714113900,"total":0.000}} 08:45:00 shelly_ejs_rpc.cpp:41 Shelly.call http.request {"method":"GET","url":"http://192.168.2.37/api/muAoGOH73kTnl6bcDc4tiGbqPLTPwdjcsD7DBozY/groups/1"} 08:45:00 shelly_notification:163 Status change of switch:1: {"id":1,"aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1714113900,"total":0.000},"ret_aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1714113900,"total":0.000}} 08:45:00 shelly_notification:163 Status change of switch:0: {"id":0,"aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1714113900,"total":43.000},"ret_aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1714113900,"total":0.000}} 08:45:00 shos_rpc_inst.c:230 http.request via loopback 08:45:00 shelly_http_client.:306 0x3ffe6aa8: HTTP GET http://192.168.2.37/api/muAoGOH73kTnl6bcDc4tiGbqPLTPwdjcsD7DBozY/groups/1 08:45:00 shelly_http_client.:606 0x3ffe6aa8: Finished; bytes 956, code 200, redir 0/3, auth 0, status OK 08:45:00 shelly_ejs_rpc.cpp:41 Shelly.call http.request {"method":"PUT","url":"http://192.168.2.37/api/muAoGOH73kTnl6bcDc4tiGbqPLTPwdjcsD7DBozY/groups/1/action","body":"{\"on\": false}"} 08:45:00 shos_rpc_inst.c:230 http.request via loopback 08:45:00 shelly_http_client.:306 0x3ffe372c: HTTP PUT http://192.168.2.37/api/muAoGOH73kTnl6bcDc4tiGbqPLTPwdjcsD7DBozY/groups/1/action 08:45:00 shelly_http_client.:606 0x3ffe372c: Finished; bytes 729, code 200, redir 0/3, auth 0, status OK 08:45:00 shelly_notification:163 Status change of switch:2: {"id":2,"aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1714113960,"total":0.000},"ret_aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1714113960,"total":0.000}} 08:46:00 shelly_ejs_rpc.cpp:41 Shelly.call http.request {"method":"GET","url":"http://192.168.2.37/api/muAoGOH73kTnl6bcDc4tiGbqPLTPwdjcsD7DBozY/groups/1"} 08:46:00 shelly_notification:163 Status change of switch:3: {"id":3,"aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1714113960,"total":0.000},"ret_aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1714113960,"total":0.000}} 08:46:00 shelly_notification:163 Status change of switch:0: {"id":0,"aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1714113960,"total":43.000},"ret_aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1714113960,"total":0.000}} 08:46:00 shelly_notification:163 Status change of switch:1: {"id":1,"aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1714113960,"total":0.000},"ret_aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1714113960,"total":0.000}} 08:46:00 shos_rpc_inst.c:230 http.request via loopback 08:46:00 shelly_http_client.:306 0x3ffe2e78: HTTP GET http://192.168.2.37/api/muAoGOH73kTnl6bcDc4tiGbqPLTPwdjcsD7DBozY/groups/1 08:46:00 shelly_http_client.:606 0x3ffe2e78: Finished; bytes 959, code 200, redir 0/3, auth 0, status OK 08:46:00 shelly_ejs_rpc.cpp:41 Shelly.call http.request {"method":"PUT","url":"http://192.168.2.37/api/muAoGOH73kTnl6bcDc4tiGbqPLTPwdjcsD7DBozY/groups/1/action","body":"{\"on\": true}"} 08:46:00 shos_rpc_inst.c:230 http.request via loopback 08:46:00 shelly_http_client.:306 0x3ffe6d7c: HTTP PUT http://192.168.2.37/api/muAoGOH73kTnl6bcDc4tiGbqPLTPwdjcsD7DBozY/groups/1/action 08:46:00 shelly_http_client.:606 0x3ffe6d7c: Finished; bytes 728, code 200, redir 0/3, auth 0, status OK

Hat jemand eine Idee dazu?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions