-
So i am trying to teach in a virtual switch as described in some topics here (and even the wiki). I my case (Eltako fj62/12-36V), i need to use different methods for different switches: 3 times short tap when using a universal button ("Taster") in German How can i do that? A script, a button in lovelace? I would be great if somebody could give me an example. Here my Config:
and my log when selecting A1/A0 via lovelace:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
0xFFF69B00 is your base id, right? In HA, once you have done this, you have to "tap" the button by selecting the state in the entity named like "e2m_myEmulatedRocker1_action". What is a bit unclear maybe is that the switch appear as a select. So to double tap you have to set the state to A1 for instance, then None, then A1 again. |
Beta Was this translation helpful? Give feedback.
-
After playing with my devices and the virtuall switches, i got another question: Can i define the virtuall switch as a up/down switch? When i try the virtuall switches, they are only recognized as one switch, that means pressing it starts the blinds going down, pressing again stops it and pressing again starts the blinds going up. Lets say i use B0 to teach in, all the others (BI, A0,AI) are doing nothing. I would expect that BI should automatically added as down (or up). |
Beta Was this translation helpful? Give feedback.
-
Check my solution at the end of #1 :) |
Beta Was this translation helpful? Give feedback.
It works!
Changed the sender id to a different number (same base id) and followed the example here in the discussion () to add a mqqt switch. Perhaps this is not really needed (should be the same as the way you described, but i need them anyway to have nice controls in lovelace.
Needed to press it 5 times instead of 3-4 and then the device was controllable.
Thanks @mak-gitdev for the work and @tbarbette for the help!