Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
COLB update state in Home Assistant
#3
i send you an example of my config

  binary_sensor:

  - name: 'COLB-D1'
    unique_id: COLB-D1
    state_topic: 'COLB/XXXXXXXXXXXXXXXXXXX/state'
    value_template: '{{ value_json.D1.on if value_json.D1 is defined else this.state }}'
    payload_off: 0

  - name: 'COLB-D2'
    unique_id: COLB-D2
    state_topic: 'COLB/XXXXXXXXXXXXXXXXXXXX/state'
    value_template: '{{ value_json.D2.on if value_json.D2 is defined else this.state }}'
    payload_on: 1
    payload_off: 0


  sensor:

  - name: 'COLB-T1'
    unique_id: COLB-T1
    state_topic: 'COLB/XXXXXXXXXXXXXXXXXXXXXX/state'
    unit_of_measurement: 'Β°C'
    value_template: '{{ value_json.T1.value }}'

  - name: 'COLB-T2'
    unique_id: COLB-T2
    state_topic: 'COLB/XXXXXXXXXXXXXXXXXXXXXXX/state'
    unit_of_measurement: 'Β°C'
    value_template: '{{ value_json.T2.value }}'
Reply


Messages In This Thread
COLB update state in Home Assistant - by Dober - 10-03-2022, 06:35 PM
RE: COLB update state in Home Assistant - by Dober - 10-03-2022, 11:11 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)