void register_listener(uint8_t datapoint_id, const std::function< void(TuyaDatapoint)> &func)
TuyaDatapointUpdateTrigger(Tuya *parent, uint8_t sensor_id)
void trigger(Ts... x)
Inform the parent automation that the event has triggered.
Implementation of SPI Controller mode.