Closed jslabotsky closed 3 years ago
I would like to know the answer to your question as well. I just recently got the Nixie set-up and am playing around with it and ran into this very issue. I can’t seem to figure out what needs to get done in order to initiate the egg timer and have it shut off after it times out.
Pull njsPC and dP. Should be fixed.
All fixed. Thank you!
OK now when I turn on a circuit, my home automation system (Home Assistant using MQTT) is not receiving the circuit status of any circuit as turned on. Do I need to change something in my MQTT topic following this fix
[EDIT] Never mind! I realized I needed to add "endTime" to the topic in HA. In the HA configuration.yaml file it looks like this:
Alright I spoke a bit too soon. If the circuit does not have an egg timer defined, it works fine. If an egg timer is defined, my HA system sends the MQTT command and the circuit turns on, and on the njsPC/DP side does what it should do, but a few seconds later HA shows the switch turned off, as if it has received state data saying the circuit is off. So the egg timer is working now, but it seems like maybe something has happened to the state reporting. I attached a capture. replay(6).zip
If you use something like MQTT explorer you can see what the state are being sent. That being said and not knowing what the payload_on/off are used for you spelled endTime entTime on the off.
Yeah, I actually did catch and correct that typo. The new capture I uploaded has the typo corrected. I'm still learning how to use MQTT. Will give MQTT Explorer a go and see if I can figure it out.
OK, I got it working. Verified njsPC/Dashpanel was sending correct stuff. For reasons unknown, with my original approach in HA, the presence of a value in the endTime field made it think the state was "off". I changed up my approach based on something another HA user posted and now it's all good.
From Home Assistant configuration.yaml for the benefit of any other HA users who see this:
Describe the bug A circuit with a timer does not turn off when the time runs out.
To Reproduce Steps to reproduce the behavior:
Expected behavior The circuit should turn off, indicated by the green light turning off. If no other circuits or programs are running, the pump should turn off.
Screenshots Circuit configuration.
Pump configuration.
Two minutes after timer expired:
Packet Capture Follow the instructions to complete a packet capture and attach the resulting zip/log files. replay(4).zip
Pool Equipment
Desktop (please complete the following information):
Additional context Add any other context about the problem here.