Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
P029 - MQTT Helper: device status not updated when GPIO is #1708
If you self compile, please state this and PLEASE try to ONLY REPORT ISSUES WITH OFFICIAL BUILDS!
Summarize of the problem/feature request
Using P029 Domoticz MQTT helper with a PWM output the device status is not always updated to the status of the GPIO. When switching PWM to 0 the actual GPIO output is set ok but the device status still shows the PWM value that was before.
512598182: EVENT: Temperatuur#Humidity=67.30
Device status and GPIO should be the same at all times.
Steps to reproduce
Hardware: NodeMCU v2.0
ESP Easy version: mega-20180826 (and probably lots before)
Is the thing I'm talking about the "bug" here or is this a real bug?
No, I think this is a real bug in C002.ino.
Code snippet (from line 100):
It looks like the UserVar (DeviceValue?) is not updated in case 0 (pwmValue = 0).