Gas Automation

 avatar
squekk21
yaml
2 years ago
446 B
4
Indexable
Never
- id: energy_gas_pulse_received
  alias: Energy - Gas - Pulse Received
  trigger:
  - platform: state
    entity_id: binary_sensor.pulse_gas_contact
  condition:
  - condition: state
    entity_id: binary_sensor.pulse_gas_contact
    state: 'off'
  action:
  - service: input_number.set_value
    data_template:
      entity_id: input_number.gas_meter_m3
      value: '{{ (states.input_number.gas_meter_m3.state | float ) + 0.010 }}'