Great plugin, thanks!
I'm using Shelly 1's in a number of applications, and have been attempting integration into my control pages. However, I am unable to achieve a "toggle" action on devices. I have tried on two separate Shelly 1 devices. Note that the example below there is a delayed action on this particular device (to turn heater off after a preset time), but the same outcome occurs (or doesn't occur!) on the device without a delay set.
With all Shelly logging turned on I get the following:
- Code: Select all
2020-05-22 10:06:27 ACTIONS: Nobo Heater - Ensuite action=actionValue : 0
configured : True
delayAmount : 900
description : toggle device
deviceAction : Toggle
deviceId : 1102496162
replaceExisting : True
textToSpeak :
2020-05-22 10:06:27 ACTIONS: dev Nobo Heater - Ensuite sending channel:0; page:relay/0?turn=off deviceTypeId:shelly1
2020-05-22 10:06:27 shellyPollerThread 1102496162; executing:10.10.10.XXX status
2020-05-22 10:06:27 sbin/ping -c 1 -W 40 -o 10.10.10.XXX return-code: 0
2020-05-22 10:06:27 Connection: /usr/bin/curl 'http://10.10.10.XXX:80/status'
2020-05-22 10:06:27 queue received: items:{'ipNumber': u'10.10.10.XXX', 'shellyIndigoDevNumber': 1102496162, 'page': 'status', 'data': {u'inputs': [{u'input': 0}], u'ext_sensors': {}, u'ext_temperature': {}, u'ram_total': 50568, u'ram_free': 40272, u'fs_size': 233681, u'unixtime': 1590141988, u'uptime': 925948, u'mac': u'BCDDC277CC49', u'update': {u'status': u'idle', u'new_version': u'20200320-123430/v1.6.2@514044b4', u'old_version': u'20200320-123430/v1.6.2@514044b4', u'has_update': False}, u'mqtt': {u'connected': False}, u'meters': [{u'is_valid': u'true', u'power': 0.0}], u'has_update': False, u'time': u'10:06', u'wifi_sta': {u'ip': u'10.10.10.XXX', u'connected': True, u'ssid': u'YYY', u'rssi': -69}, u'fs_free': 153361, u'serial': 1, u'relays': [{u'timer_remaining': 0, u'has_timer': False, u'ison': False}], u'cloud': {u'connected': False, u'enabled': False}, u'ext_humidity': {}}}
2020-05-22 10:06:27 shellyPollerThread 1102496162; executing:10.10.10.XXX relay/0?turn=off
2020-05-22 10:06:27 sbin/ping -c 1 -W 40 -o 10.10.10.XXX return-code: 0
2020-05-22 10:06:27 Connection: /usr/bin/curl 'http://10.10.10.XXX:80/relay/0?turn=off'
Am I missing something, or is there a trick?!!
TIA
mclass