void add_on_state_callback(std::function< void(std::string)> callback)
TEMPLATABLE_VALUE(std::string, state) bool check(Ts... x) override
TextSensorStateRawTrigger(TextSensor *parent)
void add_on_raw_state_callback(std::function< void(std::string)> callback)
Add a callback that will be called every time the sensor sends a raw value.
TEMPLATABLE_VALUE(std::string, state) void play(Ts... x) override
TextSensorPublishAction(TextSensor *sensor)
TextSensorStateCondition(TextSensor *parent)
TextSensorStateTrigger(TextSensor *parent)