I can't get a simple switch to work.
I am testing it on an esp8266 module with tasmota 13.3, generic module configured with switch3 (touch sensor for testing). From the console the state changes are read, but nothing is reported on HE.
I have followed all directions and tried several times, Current States reports only Complete:Success and State Variables sensorData is empty. Pasting the status 8 output in Evaluate Sensor Data doesn't change anything. I also tried switchmode3 15 on tasmota.
Thanks, I see the issue. The code is expecting at least one sensor to be attached (besides the faux switch) and bombs when that is not the case. I'll fix that but it could be a little while.
In the meantime you can trick it as follows. Install the updated code from here.
I posted this a couple of months ago for someone who wanted it to work with counters, but he never got back to me to confirm, so I didn't release it. It works in my testing but I like corroboration.
All you have to do then is add a Counter to your configuration which will appear as a sensor and then the whole thing should work. You add a counter like this.
My Status 8 now looks like this:
{"StatusSNS":{"Time":"2023-12-16T18:37:13","COUNTER":{"C1":33},"SI7021":{"Temperature":45.7,"Humidity":68,"DewPoint":35.9},"TempUnit":"F"}}
You could add a rule that increments the counter every time the sensor switch gets turned on if you wanted to add some meaning to it.
Thanks to you, I'm in no hurry, just testing. Another interesting feature to have could be the "device presence" so you know if the device loses connection or power.
I ended up connecting the switch (contact sensor) with a dummy relay in tasmota. The problem now is to get the switch recognized as a contact sensor in hubitat, without having to create virtual duplicates and update them via RM (I have more than twenty contact sensors and it would be pure chaos).
I am using both universal and standard drivers with children.
Is it possible to add an option to the driver to treat a switch as a contact so that it can be better integrated into rules and dashboards?
I could see possibly adding support for that concept in the Universal driver because its not a huge stretch to see it represent an actual contact vs a switch.
But I can't say the same for the normal relay drivers drivers. Perhaps you could explain in more detail what you are trying to do and how it might be used by others.
I'm simply trying to use 2/4 channels relays modules to control garages (open/close) and irrigation valves. Than I would use the free gpios like said before for contact sensors to monitor openings and rain sensors (same concept). But if HE doesn't see a contact device the all integration it's a nightmare of workarounds.
The problem with the Universal driver is that it's based on attributes and I don't think it will work (as far as I know).
Hi all,
can someone help me regarding this topic?
lastMessage : {"StatusSNS":{"Time":"1970-03-22T20:38:38","OBIS":{"Total_in":61844.6357,"Total_out":57791.0262,"Power_curr":0}}}
Hi @garyjmilne hop, you are doing good?
My question is can you please add this to your driver?
In my case, "OBIS" is a Power meter
Total_in = Power kwh
Total_out = Power Kwh
Power_curr = Power Kwh