Hi
On my fish feeder (Name Per) I use a timer that switch on and off a SSR relay, Its built on Arduino I send following:
Setup()
#define timerFeedTopic "per/timerFeed"
String timerMsg;
Loop()
Some if statement:
True:
timerMsg = "Feeding";
client.publish(timerFeedTopic, timerMsg.c_str());
False:
String timerMsg = "Waiting";
client.publish(timerFeedTopic, timerMsg.c_str());
yaml:
mqtt:
sensor:
- name: 'Per automatisk feeding'
unique_id: per
state_topic: 'per/timerFeed'
unit_of_measurement: 'Text'
In HA I’m not shure if Sensor is correct defined, as it is per now I don’t manage to make a card that present the alternating text Feeding/Waiting
Can you help me in correct direction?
From MQTT explorer I see the messages:
Norwegian, but you get the Idea:
Thanks up front!