smar000 / evoGateway

Python script for listening in and responding to evohome heating control radio messages
46 stars 17 forks source link

Integrate with MQTT integration in Home Assistant #59

Closed dajomas closed 11 months ago

dajomas commented 12 months ago

Hi,

can you add a description on how I can integrate evoGateway with the MQTT integration in Home Assistant?

I already use the MQTT integration for Zigbee2MQTT and Zwave-JS UI.

Thanx.

smar000 commented 12 months ago

Hi

Sorry but I am not using Home Assistant, and so am not that familiar with it. I assume you would have to manually define the mqtt devices in yaml, e.g. https://www.home-assistant.io/integrations/sensor.mqtt/?

smar000 commented 11 months ago

Hi again

Following on from the above, you could try creating manual mqtt sensors for each of the individual mqtt values, e.g:

# Office TRV
- name: "evoGW: Office: TRV 1 Temperature"
  state_topic: "evohome/evogateway/office/trv_office/temperature/temperature"
  unique_id: "evogw_office_trv_office_temperature_temperature"
  unit_of_measurement: "°C"
  icon: mdi:thermometer

- name: "evoGW: Office: TRV 1 Heat Demand"
  state_topic: "evohome/evogateway/office/trv_office/heat_demand/heat_demand"
  unique_id: "evogw_office_trv_office_heat_demand_heat_demand"
  value_template: "{{ value | round(3) * 100}}"
  unit_of_measurement: "%"
  icon: mdi:fire

- name: "evoGW: Office: TRV 1 Battery"
  state_topic: "evohome/evogateway/office/trv_office/device_battery/battery_level"
  unique_id: "evogw_office_trv_office_device_battery_battery_level"
  unit_of_measurement: "%"
  icon: mdi:battery-outline
  value_template: "{{ value | round(3) * 100}}"

- name: "evoGW: Office: Setpoint (Local)"
  state_topic: "evohome/evogateway/office/ctl_controller/setpoint/setpoint"
  unique_id: "evogw_office_ctl_controller_setpoint_setpoint"
  icon: mdi:thermometer-lines

- name: "evoGW: Office: Setpoint (Controller)"
  state_topic: "evohome/evogateway/office/ctl_controller/setpoint/setpoint"
  unique_id: "evogw_office_ctl_controller_zone_mode_setpoint"
  icon: mdi:thermometer-lines

- name: "evoGW: Office: Mode"
  state_topic: "evohome/evogateway/office/ctl_controller/zone_mode/mode"
  unique_id: "evogw_office_ctl_controller_zone_mode_mode"
  icon: mdi:autorenew

- name: "evoGW: Office: Mode Until"
  state_topic: "evohome/evogateway/office/ctl_controller/zone_mode/until"
  unique_id: "evogw_office_ctl_controller_zone_mode_until"
  icon: mdi:clock-minus-outline

Hope that helps.