I would like to control a light with an incoming value (1-255) from an ESP8266.
I checked several examples, but I am still struggling with the automations.yaml.
The examples I found are quite different, for e.g. sometimes this is inlcuded
and sometimes not:
target:
entity_id: xyz
As a beginner this is quite confusing. Therefore I am not sure, if my issue is “only”
for processing the value for brightness or it is something else…
Can someone help me, please?
So , the payload I receive from ESP is a value between 1-255, e.g. 87.
The publisehd topic is below.
This is working, I checked it with the Mosquitto of HA.
topic: /Bathroom/Light/BRT
Here is the automations.yaml. I tried several variations of it but this seems the most suitable.
Please consider marking my post above with the Solution tag. It will automatically place a check-mark next to the topic’s title which signals to other users that this topic has been resolved. This helps users find answers to similar questions.