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