heinekmadsen / esphome_components

ESPHome custom_components
30 stars 39 forks source link

Support for rooms with multiple channels used, with single room sensor. #22

Closed dkgof closed 1 year ago

dkgof commented 1 year ago

Added a dummy version of each channel, that has no battery and temperature sensor, and also no climate component, as they don't work for non room sensor channels.

Added a substitution channel_x_sensor for each chanel, to override the temp/battery sensor channel independently of the main channel.

If for example channel 6, is a dummy channel with no room sensor, you would use the following:

      - components/wavinahc9000v2/configs/channel_06_dummy.yaml 
      - components/wavinahc9000v2/configs/basic.yaml # REQUIRED FOR WAVIN AHC 9000
      - components/wavinahc9000v2/configs/channel_01.yaml
      - components/wavinahc9000v2/configs/channel_02.yaml
      - components/wavinahc9000v2/configs/channel_03.yaml
      - components/wavinahc9000v2/configs/channel_04.yaml 
      - components/wavinahc9000v2/configs/channel_05.yaml 
      - components/wavinahc9000v2/configs/channel_06_dummy.yaml 
      - components/wavinahc9000v2/configs/channel_07.yaml 
      - components/wavinahc9000v2/configs/channel_08.yaml 
      - components/wavinahc9000v2/configs/channel_09.yaml 
      - components/wavinahc9000v2/configs/channel_10.yaml 
      - components/wavinahc9000v2/configs/channel_11.yaml 
      - components/wavinahc9000v2/configs/channel_12.yaml 
      - components/wavinahc9000v2/configs/channel_13.yaml 
      - components/wavinahc9000v2/configs/channel_14.yaml 
      - components/wavinahc9000v2/configs/channel_15.yaml 
      - components/wavinahc9000v2/configs/channel_16.yaml 

And then substitutions, where every channel after channel 6, is offset by -1

CHANNEL Sensor Alignments (ONLY change if you have offsets in channel vs temperature. Some have reported this if using multiple strings pr. room thermostat)

channel_01_sensor: "0x00" channel_02_sensor: "0x01" channel_03_sensor: "0x02" channel_04_sensor: "0x03" channel_05_sensor: "0x04" channel_06_sensor: "0x05" channel_07_sensor: "0x05" channel_08_sensor: "0x06" channel_09_sensor: "0x07" channel_10_sensor: "0x08" channel_11_sensor: "0x09" channel_12_sensor: "0x0A" channel_13_sensor: "0x0B" channel_14_sensor: "0x0C" channel_15_sensor: "0x0D" channel_16_sensor: "0x0E"

dkgof commented 1 year ago

I did not change anything in the comfort config, as i dont have those to test with.

I suspect that they would be offset the same way?

heinekmadsen commented 1 year ago

@dkgof would you care to share your esphome yaml?