I am trying to get a simple momentary button on my Home Assistant front page that will publish a MQTT message, but I can seem to do it. From what I have read, creating a script would be a good way to do it. But so far, every script that I have tried come back with invalid config.
I have a ESP8266 that subscribes to MQTT and I want to send it common messages through the HA front end and then automate it obviously.
Captial letters should be avoided in HA configuration, they create all kinds of mysterious errors.
But I can’t see anything else wrong. Here is an example of something working, although I use one script to call another as I have a number doing the same thing
That did it. I changed all upper case letters to lower case letters and now it work as I had expected it to. That is rather annoying, but now that I know about it, I will be sure to make every thing lower case.