Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DuoFern Standard manual transmitter 9491 #41

Open
MrWeidenMr opened this issue Apr 1, 2022 · 2 comments
Open

DuoFern Standard manual transmitter 9491 #41

MrWeidenMr opened this issue Apr 1, 2022 · 2 comments

Comments

@MrWeidenMr
Copy link

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:

  • Value of "KEY_DOWN_EVT", "KEY_STOP_EVT" or "KEY_UP_EVT" with the number of the device button. E.g. I press the device button "1" and then "down", the "KEY_DOWN_EVT"-value is changed to "1" an the timestamp will be updated
  • timestamp of "BATT_LOW_EVT" (value will be changed to true, if battery will be low)
  • "VERSION_CFG"
  • "REACHABILITY_EVT"

Best regards
Marcel

@Skyless81
Copy link

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...

  • "VERSION_CFG"
  • "REACHABILITY_EVT"

Best regards Marcel

Hello Marcel

how did you integrate these sensors? Unfortunately I fail.

Best regards
Silvio
@Skyless81

Write

@MrWeidenMr
Copy link
Author

MrWeidenMr commented Mar 14, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants