HI,
Trying to flip a switch on my Zwave hub which doesn’t accept mutt posts, but can be reached through an api call, i need the correct code which i obviously ask your help for I figured it should be possible through the Rest platform using the restapi, but cant find the correct code, nor documentation to do so.
this is the correct code on the Hub:
curl -X POST -d '{"seq":1, "method":"object_prop_set", "arguments":{"oid":"<OID>", "prop":"command", "value":"on"}}' http://<hostname_iungo>/iungo/api_request
,
and in the graphical coding ui:
How could i flip the switch using the dev tool on Hassio , or preferably even by creating a switch in the config/switch/yaml? Selecting the Switch command doesn’t work.
currently, i tried the switch as a mqtt switch, but as explained the won’t do it, since the hub doesn’t accept posts yet. Still for your info the way i defined them do so far:
- platform: mqtt
state_topic: “macaddress/powerswitch-zwave/430ba8cf”
name: “Office”
command_topic: “macaddress/powerswitch-zwave/430ba8cf/command”
availability_topic: “macaddress/powerswitch-zwave/430ba8cf/available”
payload_on: “on”
payload_off: “off”
thanks for any help to get me on the road here.
Marius