10 namespace modbus_controller {
SensorValueType sensor_value_type
optional< transform_func_t > transform_func_
void set_template(transform_func_t &&f)
ModbusBinarySensor(ModbusRegisterType register_type, uint16_t start_address, uint8_t offset, uint32_t bitmask, uint16_t skip_updates, bool force_new_range)
ModbusRegisterType register_type
const nullopt_t nullopt((nullopt_t::init()))
void dump_config() override
bool state
The current reported state of the binary sensor.
Implementation of SPI Controller mode.
Base class for all binary_sensor-type classes.
std::function< optional< bool >(ModbusBinarySensor *, bool, const std::vector< uint8_t > &)> transform_func_t
void parse_and_publish(const std::vector< uint8_t > &data) override
void set_state(bool state)