Open MrWeidenMr opened 2 years ago
Hi Pedro,
I've registered the manual transmitter (6 Keys) at my homepilot. I'll be glad, if you could integrate it, too. Here is the output of the webinterface.
`{"error_description":"OK","error_code":0,"payload":{"device":{"capabilities":[{"name":"KEY_DOWN_EVT","value":"3","min_value":"1","max_value":"6","step_size":"1","read_only":true,"timestamp":1648...
- "REACHABILITY_EVT"
Best regards Marcel
Hello Marcel
how did you integrate these sensors? Unfortunately I fail.
Best regards Silvio @Skyless81
Write
Hi Silvio,
I used the RESTfulAPI to get the timestamp and values for the bottons up (hoch), stop (stopp) and down (runter). When I press e.g. the "3" and then "up", i get a new timestamp at "Handtaster_hoch_timestamp" and the value "3" at "Handtaster_hoch_Wert".
- scan_interval: 1 resource: http://_IP_/devices/_DEVICE-ID_ method: GET sensor:
- name: "Handtaster_runter_Wert" value_template: '{{ (value_json["payload"]["device"]["capabilities"][0]["value"]) }}'
- name: "Handtaster_runter_timestamp" value_template: '{{ (value_json["payload"]["device"]["capabilities"][0]["timestamp"]) }}'
- name: "Handtaster_stopp_Wert" value_template: '{{ (value_json["payload"]["device"]["capabilities"][9]["value"]) }}'
- name: "Handtaster_stopp_timestamp" value_template: '{{ (value_json["payload"]["device"]["capabilities"][9]["timestamp"]) }}'
- name: "Handtaster_hoch_Wert" value_template: '{{ (value_json["payload"]["device"]["capabilities"][14]["value"]) }}'
- name: "Handtaster_hoch_timestamp" value_template: '{{ (value_json["payload"]["device"]["capabilities"][14]["timestamp"]) }}'
- name: "Handtaster_bat_low" value_template: '{{ (value_json["payload"]["device"]["capabilities"][2]["value"]) }}'
Second, I created an automation using the timestamp as a trigger. When it triggers, i read the value of the up, stop and down buttons to toggle a lamp.
alias: Garten Handtaster hoch > überdachte Terrasse description: "" trigger:
- platform: state entity_id: sensor.handtaster_hoch_timestamp condition:
- condition: state entity_id: sensor.handtaster_hoch_wert state: "5" action:
- type: toggle device_id: c80038912470fe493b06d62b61b832d8 entity_id: switch.uberdachte_terrasse domain: switch mode: parallel
BR Marcel
Hi Pedro,
I've registered the manual transmitter (6 Keys) at my homepilot. I'll be glad, if you could integrate it, too. Here is the output of the webinterface.
{"error_description":"OK","error_code":0,"payload":{"device":{"capabilities":[{"name":"KEY_DOWN_EVT","value":"3","min_value":"1","max_value":"6","step_size":"1","read_only":true,"timestamp":1648799046},{"name":"KEY_INC_EVT","min_value":"1","max_value":"6","step_size":"1","read_only":true,"timestamp":-1},{"name":"BATT_LOW_EVT","value":"false","read_only":true,"timestamp":1648799070},{"name":"PAIRING_CONFIRMED_LOC","value":"true","read_only":false,"timestamp":-1},{"name":"ID_DEVICE_LOC","value":"1010030","read_only":false,"timestamp":-1},{"name":"PROTOCOL_ID_CFG","value":"a002aa","read_only":false,"timestamp":-1},{"name":"VERSION_CFG","value":"2.2-1","read_only":false,"timestamp":1648799070},{"name":"PROD_CODE_DEVICE_LOC","value":"32480366","read_only":false,"timestamp":-1},{"name":"REACHABILITY_EVT","value":"true","read_only":true,"timestamp":1648799070},{"name":"KEY_STOP_EVT","value":"1","min_value":"1","max_value":"6","step_size":"1","read_only":true,"timestamp":1648799070},{"name":"NAME_DEVICE_LOC","value":"DuoFern Handsender","read_only":false,"timestamp":1647787369},{"name":"PROT_ID_DEVICE_LOC","value":"a002aa_1","read_only":false,"timestamp":-1},{"name":"INTF_ID_DEVICE_LOC","value":"3","read_only":false,"timestamp":-1},{"name":"KEY_DEC_EVT","min_value":"1","max_value":"6","step_size":"1","read_only":true,"timestamp":-1},{"name":"KEY_UP_EVT","value":"3","min_value":"1","max_value":"6","step_size":"1","read_only":true,"timestamp":1648799054},{"name":"ICONSET_LOC","value":"iconset35","read_only":false,"timestamp":1647787354},{"name":"VIS_DEVICE_LOC","value":"true","read_only":false,"timestamp":-1},{"name":"DEVICE_TYPE_LOC","value":"10","read_only":false,"timestamp":-1},{"name":"ICONSET_INV_LOC","value":"false","read_only":false,"timestamp":-1},{"name":"DESCR_DEVICE_LOC","value":"Handsender","read_only":false,"timestamp":1647787543}],"scenes":[]}}}
By pushing a button the following entries will be updatet:
Best regards Marcel