Hi Michael,
I have two devices that I use for testing purposes. They're Arduino based boards and run the same basic sketch except for the network configuration info, so there are no network communication issues. So other than that they are identical, both hardware and software. They're connected to a breadboard and have an LED and a push button to toggle the LED.
My initial setup procedure is to have the device subscribe and publish an MQTT message which creates an unaccepted association in the PI. I usually press the button a couple times while watching the received payload to make sure the On and Off payloads are received, then check the accept box, then add the topic the topic the PI device publishes to.
My confusion comes when the initial VS pairs are created. The values that the PI creates for the second device are backward. I've had to manually edit the VS pairs and flip-flop the status text, control use as well as the graphic values. Please see the attached screenshots. So when the PI receives On it sets the device value to 0 and Off to 1. Kind of weird right? Shouldn't the Off text be translated to a value of 0 and On to 1?
It's easy enough to fix by editing the VS pairs manually but for some reason, the PI is sending reversed values to HS.
I have two devices that I use for testing purposes. They're Arduino based boards and run the same basic sketch except for the network configuration info, so there are no network communication issues. So other than that they are identical, both hardware and software. They're connected to a breadboard and have an LED and a push button to toggle the LED.
My initial setup procedure is to have the device subscribe and publish an MQTT message which creates an unaccepted association in the PI. I usually press the button a couple times while watching the received payload to make sure the On and Off payloads are received, then check the accept box, then add the topic the topic the PI device publishes to.
My confusion comes when the initial VS pairs are created. The values that the PI creates for the second device are backward. I've had to manually edit the VS pairs and flip-flop the status text, control use as well as the graphic values. Please see the attached screenshots. So when the PI receives On it sets the device value to 0 and Off to 1. Kind of weird right? Shouldn't the Off text be translated to a value of 0 and On to 1?
It's easy enough to fix by editing the VS pairs manually but for some reason, the PI is sending reversed values to HS.
Comment