Hi. Thanks for your help. I'm making progress
![Lach :)](./images/smilies/icon_e_smile.gif)
. I now have 2 issues:
Issue 1: MQTT: I amended the rules to state
Code: Select all
Publish "RPIEasy/ShutdownButton",[ShutdownButton#State]
The log says
Code: Select all
19:57:47: CMD: Publish "RPIEasy/ShutdownButton",0 (or 1)
but nothing is getting through. I'm using Docker/Mosquitto and monitoring with MQTT.fx. I can send messages via a Putty window/CLI
Code: Select all
docker exec -it mosquitto mosquitto_pub -d -t "RPIEasy/ShutdownButton" -m "Hello world!"
and that gets through to MQTT.fx.
Looking at the RPI Easy Controller I note that:
1. I've no Controller User:/Controller Password: set
2. I've no Server certificate file:
My Mosquitto / MQTT.fx are running without SSL and the Client ID is set to "MQTTfx client" .
Does RPI Easy always run with SSL? (i.e. I need to generate and set certificates) and set User/Pwd both in RPI Easy and Mosquitto?
Issue 2: Erratic state of Push Button GPIO 6
This push button is hard wired to be normally High and goes Low when pressed.
I note that when I press AND hold the button that RPi Easy displays
Code: Select all
20:23:34: CMD: Publish "RPIEasy/ShutdownButton",0
20:23:34: CMD: Publish "RPIEasy/ShutdownButton",1
Sometimes it switches static state and goes from 1 to 0. I know that cheap buttons are erratic!
When I tested my hardware with my own Python script I set the add_event to detect Falling. But in RPi Easy one cannot state the event type. I suspect you are using Both. [ I noticed with my own script that using Both the program can get out of sync].
Do you have any suggestions please.
Thank you
Alan