Skip to content

trying to get 6way wallswitch type 'ad' to work #6

Description

@bugfinder

I have started some work to get this running in my branch of your project
https://github.com/bugfinder/pyduofern

apparently all ids some in as lowercase on my system, maybe the items you tested were
all numerical up to now.

with my changes and a little debug code I can get the ID of the pushed button, but now
I do not have enough knowledge of home-assistant (or actually of python in general ...)
to get this working as a usable sensor in HA.

what I get with debugging is:
[/usr/lib/python3.6/site-packages/pyduofern/duofern.py] DUOFERN taster msg: 0f01071a0000010300000000040002ad23116faffe00
[/usr/lib/python3.6/site-packages/pyduofern/duofern.py] DUOFERN taster code: ad2311
[/usr/lib/python3.6/site-packages/pyduofern/duofern.py] DUOFERN taster chan: 03
[/usr/lib/python3.6/site-packages/pyduofern/duofern.py] DUOFERN taster id: 071a
[/usr/lib/python3.6/site-packages/pyduofern/duofern.py] DUOFERN taster chans: ['03']
[/usr/lib/python3.6/site-packages/pyduofern/duofern.py] DUOFERN taster msg: 0f01071a0000010400000000040002ad23116faffe00
[/usr/lib/python3.6/site-packages/pyduofern/duofern.py] DUOFERN taster code: ad2311
[/usr/lib/python3.6/site-packages/pyduofern/duofern.py] DUOFERN taster chan: 04
[/usr/lib/python3.6/site-packages/pyduofern/duofern.py] DUOFERN taster id: 071a
[/usr/lib/python3.6/site-packages/pyduofern/duofern.py] DUOFERN taster chans: ['04']
[/usr/lib/python3.6/site-packages/pyduofern/duofern.py] DUOFERN taster msg: 0f01071a0000010500000000040002ad23116faffe00
[/usr/lib/python3.6/site-packages/pyduofern/duofern.py] DUOFERN taster code: ad2311
[/usr/lib/python3.6/site-packages/pyduofern/duofern.py] DUOFERN taster chan: 05
[/usr/lib/python3.6/site-packages/pyduofern/duofern.py] DUOFERN taster id: 071a
[/usr/lib/python3.6/site-packages/pyduofern/duofern.py] DUOFERN taster chans: ['05']

so I do get the action "071a" -> "pressed" as "id" and the button number
between "01" and "06" as "chan".

how to continue from there ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions