I bought some modules that go inside your switch box that are zigbee control....so you can use the light switch OR control via hubitat. I automatically turn off the bathroom light if its been on for 20 mins.
The issue is that the light switch may be in the UP position when its turned off.
I want to come up with a webcore or some code,etc that would be able to detect when I flip the switch several times
For example the switch is
starting Up - off
flip down - goes on
flip up - goes off
flip down - goes on (but I want it to detect the 3 flips and turn off
starting Down - on
flip up - off
flip down - on
flip up - off (but detect the flips and go on).
Anyone have a good approach to this ?
I hate having the wall switch in the 'wrong' position too.. but my solution was WAY over the top. I changed out everything to be Legrand Adorne Push switches. They are only 5x more than those momentary
nice solution....so given the modules I have I don't think i have the same options.... I am curious ..what does a qubino module cost... i could only find things in the $50-$60 price range...but I'm probably not looking in the right location
OMG, you ROCK!!!
That is amazing....so i should be able to use a momentary switch ...i can't believe it
I'm close on a webcore piston that "might" do what I want but the momentary would be really cool...
Let's first see if the switch mode configuration will work, with these Tuya devices you never know.
This module fingerprint shows inClusters (0702, 0B04) that are typically used for energy monitoring, I don't believe this $3.50 device may have a precise current measurement shunt resistor inside.
well ..got home and while i dont have a momentary switch i used the regular switch and emulated the momentary switch and it IS definitely working as momentary !!! Thanks !!
so although the panel doesnt reflect that it is momentary.
I tried switching to original mode (tried state or toggle)...same as before it doesnt reflect on the screen ...but it is still operating in momentary mode....cant get back to orig mode... not a huge deal but it will be confusing till i get a momentary switch
This is a quick-and-dirty implementation of the switch type configuration - not as a preference (that you can save), but as a custom Command to HE. Unfortunately, in HE drivers it is not possible to select a Command default parameter other than the first one, hence the first from the list is always '--- Select ---' . You must select one of the 3 possible values from the drop-down menu and then pres the 'switchType' button above, No way to save the last selection, it will go back to ''--- Select ---".
You must examine the device Logs page. When changing the switch type, you should see Info logs like this:
[dev:2917](http://192.168.0.151/logs#dev2917)2022-07-13 21:54:57.213 [info](http://192.168.0.151/device/edit/2917)Switch TS0001 _TZ3000_npzfdcof Switch Type is: momentary state
[dev:2917](http://192.168.0.151/logs#dev2917)2022-07-13 21:41:09.551 [info](http://192.168.0.151/device/edit/2917)Switch TS0001 _TZ3000_npzfdcof Switch Type is: toggle
These may be buried into lots of other debug logs, so you may want to switch the Debug option off .
These logs are printed only when the device actually confirms the mode change. Please try again changing the switch mode and let me know if you see the confirmation messages in the logs page.
This is something that we must fix, if there is actually a problem.
YES! You are correct ...I confirmed that clicking the set switch DOES set it correctly and I could pick any of the options. After setting back to state or toggle (cant tell difference) I was able to verify my webcore piston that allows me to change the state of the light by flipping 3 times.
I could leave it like that but the momentary is way cooler.
In keeping with challenging myself to make this as cheap as possible, I found a momentary switch and 3d printed the button...this will replace my normal toggle switch (not paddle)
I can't thank you enough for making momentary work. So for around $5-$6 total this does what the Zooz switches do, that I paid $35 for. Note the switch inputs to the $3.50 module are low voltage.