claudegel / sinope-zha

This is a custom quirks for sinope zigbee devices for testing before it is added to zha-device-handlers. It also explain how to setup those quirks in Home Assistant to use and test them before they are merged in zha-device-handlers
GNU General Public License v2.0
26 stars 5 forks source link

Config2nd display #6

Closed claudegel closed 1 year ago

chrisbklein commented 1 year ago

Hello Claude - Chris here from Lac-Delage (QC) I just installed a Sinope thermostat [TH1123ZB] using the Sonoff [USB Zigbee 3 pro]. Everything works fine except I don't understand how to get the outside temperature to display on the Sinope thermostat and I also don't see the actual state like heating - away - etc. on the thermostat display. What do I need to do in terms of code changes?

Chris

claudegel commented 1 year ago

Hi Chris, to send temperature to your thermostat you need first to set a sensor that will get outside temperature from somewhere. Could be local temperature measured directly outside with a sensor or get temperature form other weather component like openweathermap, dark sky, météo canada etc there are many on HA. then you need to set an automation that will send temperature to your thermostat at least once per hour or your thermostat will go back to setpoint temperature. here is an example:

- alias: Send-OutdoorTemp
  trigger:
    - platform: state
      entity_id: sensor.local_temp # sensor to get local temperature
  variables:
    thermostats:
      - 50:0b:91:40:00:02:2d:6d  #ieee of your thermostat dvices, one per line
      - 50:0b:91:40:00:02:2a:65
  action:
    - repeat:  #service will be call for each ieee
        count: "{{thermostats|length}}"
        sequence:
          - service: zha.set_zigbee_cluster_attribute
            data:
              ieee: "{{ thermostats[repeat.index-1] }}"
              endpoint_id: 1
              cluster_id: 0xff01 # 65281
              cluster_type: in
              attribute: 0x0010 # 16
              value: "{{ ( trigger.to_state.state|float * 100 ) |int }}" # sending temperature in hundredth of a degree
            mode: single

For the sensor it could be reading temperature from other neviweb device or from other weather services:

template:
  - sensor:
      - name: "outdoor_temp"
        unit_of_measurement: '°C'
        device_class: temperature
        state_class: measurement
        state: "{{ state_attr('switch.neviweb130_switch_mc3100zb', 'Extern_temperature') }}"
      - name: "outside_temp"
        unit_of_measurement: '°C'
        device_class: temperature
        state_class: measurement
        state: "{{ state_attr('weather.dark_sky', 'temperature') }}"

For the display it depend on what type of lovelace thermostat card you pick. If you check on my other custom_components for HA like sinope-130 you will see more example in the doc for the card setup and display

chrisbklein commented 1 year ago

Hello Claude

Could you please tell me if I have to add this into the configuration.yaml or if I have to add this into the thermostat.py?

Chris

PS: I am just starting with home assistant and yaml and have not a lot of experience.

From: Claude Gelinas @.> Sent: Sunday, January 22, 2023 1:37 PM To: claudegel/sinope-zha @.> Cc: chrisbklein @.>; Comment @.> Subject: Re: [claudegel/sinope-zha] Config2nd display (PR #6)

Hi Chris, to send temperature to your thermostat you need first to set a sensor that will get outside temperature from somewhere. Could be local temperature measured directly outside with a sensor or get temperature form other weather component like openweathermap, dark sky, météo canada etc there are many on HA. then you need to set an automation that will send temperature to your thermostat at least once per hour or your thermostat will go back to setpoint temperature. here is an example:

For the sensor it could be reading temperature from other neviweb device or from other weather services:

template:

For the display it depend on what type of lovelace thermostat card you pick. If you check on my other custom_components for HA like sinope-130 you will see more example in the doc for the card setup and display

— Reply to this email directly, view it on GitHubhttps://github.com/claudegel/sinope-zha/pull/6#issuecomment-1399570238, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIM22KVTBDFLYZKCSIWPI7DWTV46BANCNFSM6AAAAAAT56CEVM. You are receiving this because you commented.Message ID: @.**@.>>

claudegel commented 1 year ago

Hi Chris You can put everything in the file configuration.yaml but doing so you will end up with a very big file. So normally we split things is different file and refer to them in the configuration.yaml file

First for the configuration.yaml, add those lines:

group: !include groups.yaml
automation: !include_dir_merge_list automation/
script: !include scripts.yaml
scene: !include scenes.yaml
sensor: !include sensor.yaml
timer: !include timer.yaml
template: !include template.yaml

Note: when you write code like what I did above highlight it with your mouse and click the <> above. This will keep the formating correctly.

Once you have those line added in configuration.yaml them you will need to create some files.

In template.yaml you will put your sensor for outside temperature

  - sensor:
      - name: "outdoor_temp"
        unit_of_measurement: '°C'
        device_class: temperature
        state_class: measurement
        state: "{{ state_attr('switch.neviweb130_switch_mc3100zb', 'Extern_temperature') }}"

note that you don't need to write the word template. Also the first line - sensor have two spaces before. Once you have selected your weather source let me know and I'll tell you what to write exactly in template.yaml

For the automation that send the outside temperature to the thermostat you will place it in the automation directory. Create a file like auto_update.yaml. in that file you will place all the automations related to the update sent to your thermostats or other devices. For now just put this:

- alias: Send-OutdoorTemp
  trigger:
    - platform: state
      entity_id: sensor.outdoor_temp # sensor to get local temperature. the one you use in template.yaml
  variables:
    thermostats:
      - 50:0b:91:40:00:02:2d:6d  #ieee of your thermostat devices, one per line
      - 50:0b:91:40:00:02:2a:65
  action:
    - repeat:  #service will be call for each ieee
        count: "{{thermostats|length}}"
        sequence:
          - service: zha.set_zigbee_cluster_attribute
            data:
              ieee: "{{ thermostats[repeat.index-1] }}"
              endpoint_id: 1
              cluster_id: 0xff01 # 65281
              cluster_type: in
              attribute: 0x0010 # 16
              value: "{{ ( trigger.to_state.state|float * 100 ) |int }}" # sending temperature in hundredth of a degree
            mode: single

So first tell me what temperature data you want to use:

chrisbklein commented 1 year ago

Thank you for helping me Claude.

I did order a ZigBee temperature and humidity sensor from Amazon and this sensor will be here on Wednesday. I want to measure the actual temperature here on Lac-Delage and that in intervals of 15 minutes. (if possible)

Chris

From: Claude Gelinas @.> Sent: Monday, January 23, 2023 5:15 PM To: claudegel/sinope-zha @.> Cc: chrisbklein @.>; Comment @.> Subject: Re: [claudegel/sinope-zha] Config2nd display (PR #6)

Hi Chris You can put everything in the file configuration.yaml but doing so you will end up with a very big file. So normally we splitt things is different file and refer to them in the configuration.yaml file

First for the configuration.yam, add those lines:

group: !include groups.yaml

automation: !include_dir_merge_list automation/

script: !include scripts.yaml

scene: !include scenes.yaml

sensor: !include sensor.yaml

timer: !include timer.yaml

template: !include template.yaml

Note: when you write code like what I did above highlight it with your mouse and click the <> above. This will keep the formating correctly.

Once you have those line added in configuration.yaml them you will need to create some files.

In template.yaml you will put your sensor for outside temperature

note that you don't need to write the word template. Also the first line - sensor have two spaces before. Once you have selected your weather source let me know and I'll tell you what to write exactly in template.yaml

For the automation that send the outside temperature to the thermostat you will place it in the automation directory. Create a file like auto_update.yaml. in that file you will place all the automations related to the update sent to your thermostats or other devices. For now just put this:

So first tell me what temperature data you want to use:

— Reply to this email directly, view it on GitHubhttps://github.com/claudegel/sinope-zha/pull/6#issuecomment-1401072521, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIM22KSXA2GWQ5ZU4OO2YLTWT37F7ANCNFSM6AAAAAAT56CEVM. You are receiving this because you commented.Message ID: @.**@.>>

claudegel commented 1 year ago

Can you send me more info about that temperature sensor ? Normally you don't need an interval as the automation will send new data to thermostat as soon as there is a temperature change on the sensor. I it is a zigbee temperature sensor then you probably won't need to create a sensor as the device will have his own sensor. Once you get it I'll guide you on how to set it with the automation

chrisbklein commented 1 year ago

I will do that as soon it is here.

Thank you very much Claude.

Chris

From: Claude Gelinas @.> Sent: Monday, January 23, 2023 8:09 PM To: claudegel/sinope-zha @.> Cc: chrisbklein @.>; Comment @.> Subject: Re: [claudegel/sinope-zha] Config2nd display (PR #6)

Can you send me more info about that temperature sensor ? Normally you don't need an interval as the automation will send new data to thermostat as soon as there is a temperature change on the sensor. I it is a zigbee temperature sensor then you probably won't need to create a sensor as the device will have his own sensor. Once you get it I'll guide you on how to set it with the automation

— Reply to this email directly, view it on GitHubhttps://github.com/claudegel/sinope-zha/pull/6#issuecomment-1401231357, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIM22KWXPPG2ZWZW447T6ALWT4TUFANCNFSM6AAAAAAT56CEVM. You are receiving this because you commented.Message ID: @.**@.>>

chrisbklein commented 1 year ago

Hallo again Claude

I did receive my sensor and I prepared everything as you described below.

I do run the thermostat directly on a ZigBee stick from Sonoff and I do no not have the Sinope neviweb130 which you refer to in the sensor script below. I do not know where I can find the ieee address of the thermostat but I am supposed to enter the address into the script – correct? One address per thermostat as you say.

The name of the sensor outside is: sensor.lumi_lumi_weather_temperature

@.***

Thank you again for your help.

Chris

From: Claude Gelinas @.> Sent: Monday, January 23, 2023 5:15 PM To: claudegel/sinope-zha @.> Cc: chrisbklein @.>; Comment @.> Subject: Re: [claudegel/sinope-zha] Config2nd display (PR #6)

Hi Chris You can put everything in the file configuration.yaml but doing so you will end up with a very big file. So normally we splitt things is different file and refer to them in the configuration.yaml file

First for the configuration.yam, add those lines:

group: !include groups.yaml

automation: !include_dir_merge_list automation/

script: !include scripts.yaml

scene: !include scenes.yaml

sensor: !include sensor.yaml

timer: !include timer.yaml

template: !include template.yaml

Note: when you write code like what I did above highlight it with your mouse and click the <> above. This will keep the formating correctly.

Once you have those line added in configuration.yaml them you will need to create some files.

In template.yaml you will put your sensor for outside temperature

note that you don't need to write the word template. Also the first line - sensor have two spaces before. Once you have selected your weather source let me know and I'll tell you what to write exactly in template.yaml

For the automation that send the outside temperature to the thermostat you will place it in the automation directory. Create a file like auto_update.yaml. in that file you will place all the automations related to the update sent to your thermostats or other devices. For now just put this:

So first tell me what temperature data you want to use:

— Reply to this email directly, view it on GitHubhttps://github.com/claudegel/sinope-zha/pull/6#issuecomment-1401072521, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIM22KSXA2GWQ5ZU4OO2YLTWT37F7ANCNFSM6AAAAAAT56CEVM. You are receiving this because you commented.Message ID: @.**@.>>

aomann commented 1 year ago

Hello,

The ieee number can be found on the device page.

C53FBB1D-E79E-410D-851F-ECEAA32EE99E

chrisbklein commented 1 year ago

Thank you Claude

Found it.

Chris

From: aomann @.> Sent: Thursday, January 26, 2023 12:58 PM To: claudegel/sinope-zha @.> Cc: chrisbklein @.>; Comment @.> Subject: Re: [claudegel/sinope-zha] Config2nd display (PR #6)

Hello,

The ieee number can be found on the device page.

[C53FBB1D-E79E-410D-851F-ECEAA32EE99E]https://user-images.githubusercontent.com/2340536/214912708-1cc22884-033f-4d8b-b576-7c3dc90f300c.jpeg

— Reply to this email directly, view it on GitHubhttps://github.com/claudegel/sinope-zha/pull/6#issuecomment-1405385458, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIM22KWAF62FK4JPWH6LUYLWUK3MBANCNFSM6AAAAAAT56CEVM. You are receiving this because you commented.Message ID: @.**@.>>

chrisbklein commented 1 year ago

Hello Claude.

Here is the Thermostat I did get today.

It is a Aqara: Model WSDCGQ11LM Temperature and hunidity sensor.

Chris

PS: Did everything you wrote to me. As of now there is no external temperature on the sinope thermostat display.

@.***

From: Claude Gelinas @.> Sent: Monday, January 23, 2023 8:09 PM To: claudegel/sinope-zha @.> Cc: chrisbklein @.>; Comment @.> Subject: Re: [claudegel/sinope-zha] Config2nd display (PR #6)

Can you send me more info about that temperature sensor ? Normally you don't need an interval as the automation will send new data to thermostat as soon as there is a temperature change on the sensor. I it is a zigbee temperature sensor then you probably won't need to create a sensor as the device will have his own sensor. Once you get it I'll guide you on how to set it with the automation

— Reply to this email directly, view it on GitHubhttps://github.com/claudegel/sinope-zha/pull/6#issuecomment-1401231357, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIM22KWXPPG2ZWZW447T6ALWT4TUFANCNFSM6AAAAAAT56CEVM. You are receiving this because you commented.Message ID: @.**@.>>

claudegel commented 1 year ago

I'm not sure this sensor goes outside. I've sent an email to aqara support to find out. But as your aqara sensor is a zigbee then you can view it in ZHA. If you are using ZHA to manage your zigbee devices then you can go in parameters/devices and services. Open the ZHA card where it list all connected zigbee devices. Find your temperature sensor and open it. Then you will find the temperature sensor name. Put it in the automation below:

- alias: Send-OutdoorTemp
  trigger:
    - platform: state
      entity_id: sensor.aqara xxx # your aqara temperature sensor name found in ZHA
  variables:
    thermostats:
      - 50:0b:91:40:00:02:2d:6d  #ieee of your thermostat dvices, one per line
      - 50:0b:91:40:00:02:2a:65
  action:
    - repeat:  #service will be call for each ieee
        count: "{{thermostats|length}}"
        sequence:
          - service: zha.set_zigbee_cluster_attribute
            data:
              ieee: "{{ thermostats[repeat.index-1] }}"
              endpoint_id: 1
              cluster_id: 0xff01 # 65281
              cluster_type: in
              attribute: 0x0010 # 16
              value: "{{ ( trigger.to_state.state|float * 100 ) |int }}" # sending temperature in hundredth of a degree
            mode: single
claudegel commented 1 year ago

Sorry but your aqara temperature sensor is not set to be used outside. Response from aqara Hi Claude,

Thank you for contacting us.

Our Aqara products are not rated for outdoor use and should not be exposed to rain or vapor. ​ If you have any other questions or concerns feel free to contact us. ​ Sincerely, Caleb Aqara Technical Support

chrisbklein commented 1 year ago

Thank you for your answer Claude.

That is what I already did. You are of cause correct and this sensor is not waterproof or supposed to be outside. It is however in a total safe position and far away from moisture etc. and I will exchange it ones I get all of that to work.

Befor I did send you the email I already followed what you advised me to do in the older email but I was not successful with the code below.

auto_update.yaml

template.yaml

From: Claude Gelinas @.> Sent: Thursday, January 26, 2023 8:07 PM To: claudegel/sinope-zha @.> Cc: chrisbklein @.>; Comment @.> Subject: Re: [claudegel/sinope-zha] Config2nd display (PR #6)

I'm not sure this sensor goes outside. I've sent an email to aqara support to find out. But as your aqara sensor is a zigbee then you can view it in ZHA. If you are using ZHA to manage your zigbee devices then you can go in parameters/devices and services. Open the ZHA card where it list all connected zigbee devices. Find your temperature sensor and open it. Then you will find the temperature sensor name. Put it in the automation below:

— Reply to this email directly, view it on GitHubhttps://github.com/claudegel/sinope-zha/pull/6#issuecomment-1405881685, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIM22KUJ3XBQVQSBRALQDOTWUMNSVANCNFSM6AAAAAAT56CEVM. You are receiving this because you commented.Message ID: @.**@.>>

aomann commented 1 year ago

Hello,

Try the following using the GUI:

040572E2-82E4-489A-BA25-BB039C3F14C8 600A55B6-7F84-4DA2-8556-BD889006F736

Replace the ieee with one of your thermostat.

It should display -10 as the outdoor temperature.

Alex

aomann commented 1 year ago

The service is Zigbee Home Automation: Set zigbee cluster attribute and the attribute is 0x0010

claudegel commented 1 year ago

if you go in dev-tools/states what is the state for your sensor.lumi_lumi_weather_temperature, the second column should be the outside temperature if your sensor is outside. Then if it is OK for the sensor temperature value the automation is like this

- alias: Send-OutdoorTemp
  trigger:
    - platform: state
      entity_id: sensor.lumi_lumi_weather_temperature # sensor to get local temperature
  variables:
    thermostats:
      - 00:15:8d:00:08:a6:cd:0b    #ieee of your thermostat devices, one per line
  action:
    - repeat:  #service will be call for each ieee
        count: "{{thermostats|length}}"
        sequence:
          - service: zha.set_zigbee_cluster_attribute
            data:
              ieee: "{{ thermostats[repeat.index-1] }}"
              endpoint_id: 1
              cluster_id: 0xff01 # 65281
              cluster_type: in
              attribute: 0x0010 # 16
              value: "{{ ( trigger.to_state.state|float * 100 ) |int }}" # sending temperature in hundredth of a degree
            mode: single

Your file auto_update.yaml should be in the folder config/automation/ and you should have this line in configuration.yaml automation: !include_dir_merge_list automation/

chrisbklein commented 1 year ago

Hello Claude

The sensor state is as follows.

@.***

Chris

From: Claude Gelinas @.> Sent: Friday, January 27, 2023 11:33 AM To: claudegel/sinope-zha @.> Cc: chrisbklein @.>; Comment @.> Subject: Re: [claudegel/sinope-zha] Config2nd display (PR #6)

if you go in dev-tools/states what is the state for your sensor.lumi_lumi_weather_temperature, the second column should be the outside temperature if your sensor is outside. Then if it is OK for the sensor temperature value the automation is like this

Your file auto_update.yaml should be in the folder config/automation/ and you should have this line in configuration.yaml automation: !include_dir_merge_list automation/

— Reply to this email directly, view it on GitHubhttps://github.com/claudegel/sinope-zha/pull/6#issuecomment-1406742799, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIM22KVTTYNZEKAEQLQSBDDWUP2ERANCNFSM6AAAAAAT56CEVM. You are receiving this because you commented.Message ID: @.**@.>>

chrisbklein commented 1 year ago

Hello Claude

If you have the time you could have a look with team viewer.

Chris

From: Claude Gelinas @.> Sent: Friday, January 27, 2023 11:33 AM To: claudegel/sinope-zha @.> Cc: chrisbklein @.>; Comment @.> Subject: Re: [claudegel/sinope-zha] Config2nd display (PR #6)

if you go in dev-tools/states what is the state for your sensor.lumi_lumi_weather_temperature, the second column should be the outside temperature if your sensor is outside. Then if it is OK for the sensor temperature value the automation is like this

Your file auto_update.yaml should be in the folder config/automation/ and you should have this line in configuration.yaml automation: !include_dir_merge_list automation/

— Reply to this email directly, view it on GitHubhttps://github.com/claudegel/sinope-zha/pull/6#issuecomment-1406742799, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIM22KVTTYNZEKAEQLQSBDDWUP2ERANCNFSM6AAAAAAT56CEVM. You are receiving this because you commented.Message ID: @.**@.>>

claudegel commented 1 year ago

How can I do team viewer

claudegel commented 1 year ago

You say

Hello Claude

The sensor state is as follows.

But I can't see the state value

chrisbklein commented 1 year ago

Hello Claude

1 135 323 770 v5n3uusq

Chris

From: Claude Gelinas @.> Sent: Friday, January 27, 2023 4:11 PM To: claudegel/sinope-zha @.> Cc: chrisbklein @.>; Comment @.> Subject: Re: [claudegel/sinope-zha] Config2nd display (PR #6)

How can I do team viewer

— Reply to this email directly, view it on GitHubhttps://github.com/claudegel/sinope-zha/pull/6#issuecomment-1407078427, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIM22KTO2BNBXL4KUDYGEHTWUQ2XLANCNFSM6AAAAAAT56CEVM. You are receiving this because you commented.Message ID: @.**@.>>

darouss99 commented 1 year ago

@chrisbklein Not the best place to let your teamviewer ID and Password. Now all the internet can access your computer. You should generate new ID/Password and not let it on the internet. Good evening.

chrisbklein commented 1 year ago

Password changes every time

From: Daniel Roussel @.> Sent: Friday, January 27, 2023 5:32 PM To: claudegel/sinope-zha @.> Cc: chrisbklein @.>; Mention @.> Subject: Re: [claudegel/sinope-zha] Config2nd display (PR #6)

@chrisbkleinhttps://github.com/chrisbklein Not the best place to let your teamviewer ID and Password. Now all the internet can access your computer. You should generate new ID/Password and not let it on the internet. Good evening.

— Reply to this email directly, view it on GitHubhttps://github.com/claudegel/sinope-zha/pull/6#issuecomment-1407144613, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIM22KSYU7EO5YUGTUQGDQTWUREGBANCNFSM6AAAAAAT56CEVM. You are receiving this because you were mentioned.Message ID: @.**@.>>

chrisbklein commented 1 year ago

Hello Claude

-11.1

Chris

@.***

From: Claude Gelinas @.> Sent: Friday, January 27, 2023 4:12 PM To: claudegel/sinope-zha @.> Cc: chrisbklein @.>; Comment @.> Subject: Re: [claudegel/sinope-zha] Config2nd display (PR #6)

You say

Hello Claude

The sensor state is as follows.

But I can'y see the state value

— Reply to this email directly, view it on GitHubhttps://github.com/claudegel/sinope-zha/pull/6#issuecomment-1407079173, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIM22KT42EKAVNES4G7JX23WUQ223ANCNFSM6AAAAAAT56CEVM. You are receiving this because you commented.Message ID: @.**@.>>

claudegel commented 1 year ago

So your sensor is sending -11.1 you should put the name of your sensor in the automation

chrisbklein commented 1 year ago

Again Thank you.

I am here and can see when you log in to my system.

Chris

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Claude Gelinas @.> Sent: Friday, January 27, 2023 7:12:35 PM To: claudegel/sinope-zha @.> Cc: chrisbklein @.>; Mention @.> Subject: Re: [claudegel/sinope-zha] Config2nd display (PR #6)

So your sensor is sending -11.1 you should put the name of your sensor in the automation

entity_id: your sensor device name For teamviewer I need to do some configuration as I'm not on windows. let me try to install it first

— Reply to this email directly, view it on GitHubhttps://github.com/claudegel/sinope-zha/pull/6#issuecomment-1407208465, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIM22KWOOXZ7WKKU7Z74OXDWURP7HANCNFSM6AAAAAAT56CEVM. You are receiving this because you were mentioned.Message ID: @.***>

claudegel commented 1 year ago

I'm ready to connect. need the password

claudegel commented 1 year ago

look like password not working

chrisbklein commented 1 year ago

I did send you an new one to your @.**@.> address

From: Claude Gelinas @.> Sent: Friday, January 27, 2023 7:37 PM To: claudegel/sinope-zha @.> Cc: chrisbklein @.>; Mention @.> Subject: Re: [claudegel/sinope-zha] Config2nd display (PR #6)

look like password not working

— Reply to this email directly, view it on GitHubhttps://github.com/claudegel/sinope-zha/pull/6#issuecomment-1407224164, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIM22KWY4LOVH22DYTWQ3Q3WURS2NANCNFSM6AAAAAAT56CEVM. You are receiving this because you were mentioned.Message ID: @.**@.>>

claudegel commented 1 year ago

how can I talk to you on teamviewer. Look like your automation is not there You need to have in dev-tool/states automation.send_outdoortemp

claudegel commented 1 year ago

Chris, look like your automation is ok. I was able to reproduce the same error on mine and it is because we start it manually. in that case the trigger value is not there so it give an error about trigger don't have a state value. But when the automation is trigered by the temperature change there is a value in the trigger. So I presume that your automation is ok now. What do you have for the second display ? the setpoint value ?

chrisbklein commented 1 year ago

Hello Claude

Right now this is what is on the display.

@.***

Chris

From: Claude Gelinas @.> Sent: Saturday, January 28, 2023 3:08 PM To: claudegel/sinope-zha @.> Cc: chrisbklein @.>; Mention @.> Subject: Re: [claudegel/sinope-zha] Config2nd display (PR #6)

Chris, look like your automation is ok. I was able to reproduce the same error on mine and it is because we start it manually. in that case the trigger value is not there so it give an error about trigger don't have a state value. But when the automation is trigered by the temperature change there is a value in the trigger. So I presume that your automation is ok now. What do you have for the second display ? the setpoint value ?

— Reply to this email directly, view it on GitHubhttps://github.com/claudegel/sinope-zha/pull/6#issuecomment-1407476221, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIM22KXLRTLLBNSYONUUXJ3WUV4CVANCNFSM6AAAAAAT56CEVM. You are receiving this because you were mentioned.Message ID: @.**@.>>

chrisbklein commented 1 year ago

I did send you another email to phyto.

Chris

From: Claude Gelinas @.> Sent: Saturday, January 28, 2023 3:08 PM To: claudegel/sinope-zha @.> Cc: chrisbklein @.>; Mention @.> Subject: Re: [claudegel/sinope-zha] Config2nd display (PR #6)

Chris, look like your automation is ok. I was able to reproduce the same error on mine and it is because we start it manually. in that case the trigger value is not there so it give an error about trigger don't have a state value. But when the automation is trigered by the temperature change there is a value in the trigger. So I presume that your automation is ok now. What do you have for the second display ? the setpoint value ?

— Reply to this email directly, view it on GitHubhttps://github.com/claudegel/sinope-zha/pull/6#issuecomment-1407476221, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIM22KXLRTLLBNSYONUUXJ3WUV4CVANCNFSM6AAAAAAT56CEVM. You are receiving this because you were mentioned.Message ID: @.**@.>>

chrisbklein commented 1 year ago

Here is what I found out when I did install the minimalistic dashboard which polled in all the entities by itself.

@.***

As you can see: The outdoor_temp is Unknown.

The reason for that is:

@.***

And the explanation behind this is:

@.***

Chris

From: Claude Gelinas @.> Sent: Saturday, January 28, 2023 3:08 PM To: claudegel/sinope-zha @.> Cc: chrisbklein @.>; Mention @.> Subject: Re: [claudegel/sinope-zha] Config2nd display (PR #6)

Chris, look like your automation is ok. I was able to reproduce the same error on mine and it is because we start it manually. in that case the trigger value is not there so it give an error about trigger don't have a state value. But when the automation is trigered by the temperature change there is a value in the trigger. So I presume that your automation is ok now. What do you have for the second display ? the setpoint value ?

— Reply to this email directly, view it on GitHubhttps://github.com/claudegel/sinope-zha/pull/6#issuecomment-1407476221, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIM22KXLRTLLBNSYONUUXJ3WUV4CVANCNFSM6AAAAAAT56CEVM. You are receiving this because you were mentioned.Message ID: @.**@.>>

chrisbklein commented 1 year ago

Hello Claude

Seams to be a problem of that sensor since other people report the exact same problem.

Having issues with zigbee being Unavailable, never reporting battery - Configuration / Zigbee - Home Assistant Community (home-assistant.io)https://community.home-assistant.io/t/having-issues-with-zigbee-being-unavailable-never-reporting-battery/273420

I will get another one.

Chris

From: Claude Gelinas @.> Sent: Saturday, January 28, 2023 3:08 PM To: claudegel/sinope-zha @.> Cc: chrisbklein @.>; Mention @.> Subject: Re: [claudegel/sinope-zha] Config2nd display (PR #6)

Chris, look like your automation is ok. I was able to reproduce the same error on mine and it is because we start it manually. in that case the trigger value is not there so it give an error about trigger don't have a state value. But when the automation is trigered by the temperature change there is a value in the trigger. So I presume that your automation is ok now. What do you have for the second display ? the setpoint value ?

— Reply to this email directly, view it on GitHubhttps://github.com/claudegel/sinope-zha/pull/6#issuecomment-1407476221, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIM22KXLRTLLBNSYONUUXJ3WUV4CVANCNFSM6AAAAAAT56CEVM. You are receiving this because you were mentioned.Message ID: @.**@.>>

claudegel commented 1 year ago

Sorry Ghris, I was out today. So if it is the sensor which cause problem we can switch to a weather service. I think that you have installed openweathermap so you have access to sensor.openweathermap_temperature Then replace sensor.lumi_lumi_weather_temperature in your automation by sensor.openweathermap_temperature and restart HA. If it work we will just have to replace the automation with the new sensor you will by

claudegel commented 1 year ago

In my home I use a Sinopé MC3100ZB which connect my Sedna valve to my alarm system. This device have an input to connect a temperature sensor. I bought a AC1310-01 floor sensor that come with 15 feet of wire. I've placed the sensor outside and connect it to the MC3100ZB inside and I get the local temperature.

chrisbklein commented 1 year ago

Hello Claude.

I did install zigbee2mqtt. I did pair all the devices from scratch. I am now able to see the set temperature on the secondary display of the sinope. The exterior aqura temperature sensor is now working as well.

I did change the entity_id to the new values. “ entity_id: sensor.external_sensor_office_windows_humidity_pressure_temperature_temperature “ (I hope this is correct)

I do not know what to change for the service because right now it still says: “ - service: zha.set_zigbee_cluster_attribute”

What do I have to change there or anywhere else for that matter.

Chris

From: Claude Gelinas @.> Sent: Sunday, January 29, 2023 1:37 PM To: claudegel/sinope-zha @.> Cc: chrisbklein @.>; Mention @.> Subject: Re: [claudegel/sinope-zha] Config2nd display (PR #6)

In my home I use a Sinopé MC3100ZB which connect my Sedna valve to my alarm system. This device have an input to connect a temperature sensor. I bought a AC1310-01 floor sensor that come with 15 feet of wire. I've placed the sensor outside and connect it to the MC3100ZB inside and I get the local temperature.

— Reply to this email directly, view it on GitHubhttps://github.com/claudegel/sinope-zha/pull/6#issuecomment-1407738338, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIM22KW4NKDRELUOVKQKKWLWU22E3ANCNFSM6AAAAAAT56CEVM. You are receiving this because you were mentioned.Message ID: @.**@.>>

Sinope Thermostat Office debug info Payload display Attempt to parse MQTT messages as JSON Show as YAML Entities Sinope Thermostat Office pi heating demand (sensor.sinope_thermostat_office_pi_heating_demand) MQTT discovery data: Topic: homeassistant/sensor/0x003c84fffe99dc10/pi_heating_demand/config Payload Subscribed topics: zigbee2mqtt/bridge/state 10 most recently received message(s) zigbee2mqtt/Sinope Thermostat Office 10 most recently received message(s) Transmitted messages: Sinope Thermostat Office (climate.sinope_thermostat_office) MQTT discovery data: Topic: homeassistant/climate/0x003c84fffe99dc10/climate/config Payload Subscribed topics: zigbee2mqtt/bridge/state 10 most recently received message(s) zigbee2mqtt/Sinope Thermostat Office 10 most recently received message(s) Transmitted messages: zigbee2mqtt/Sinope Thermostat Office/set/system_mode 1 most recently transmitted message(s) zigbee2mqtt/Sinope Thermostat Office/set/occupied_heating_setpoint 1 most recently transmitted message(s) Sinope Thermostat Office thermostat occupancy (select.sinope_thermostat_office_thermostat_occupancy) MQTT discovery data: Topic: homeassistant/select/0x003c84fffe99dc10/thermostat_occupancy/config Payload Subscribed topics: zigbee2mqtt/bridge/state 10 most recently received message(s) zigbee2mqtt/Sinope Thermostat Office 10 most recently received message(s) Transmitted messages: Sinope Thermostat Office backlight auto dim (select.sinope_thermostat_office_backlight_auto_dim) MQTT discovery data: Topic: homeassistant/select/0x003c84fffe99dc10/backlight_auto_dim/config Payload Subscribed topics: zigbee2mqtt/bridge/state 10 most recently received message(s) zigbee2mqtt/Sinope Thermostat Office 10 most recently received message(s) Transmitted messages: Sinope Thermostat Office keypad lockout (select.sinope_thermostat_office_keypad_lockout) MQTT discovery data: Topic: homeassistant/select/0x003c84fffe99dc10/keypad_lockout/config Payload Subscribed topics: zigbee2mqtt/bridge/state 10 most recently received message(s) zigbee2mqtt/Sinope Thermostat Office 10 most recently received message(s) Transmitted messages: Sinope Thermostat Office main cycle output (select.sinope_thermostat_office_main_cycle_output) MQTT discovery data: Topic: homeassistant/select/0x003c84fffe99dc10/main_cycle_output/config Payload Subscribed topics: zigbee2mqtt/bridge/state 10 most recently received message(s) zigbee2mqtt/Sinope Thermostat Office 10 most recently received message(s) Transmitted messages: Sinope Thermostat Office power (sensor.sinope_thermostat_office_power) MQTT discovery data: Topic: homeassistant/sensor/0x003c84fffe99dc10/power/config Payload Subscribed topics: zigbee2mqtt/bridge/state 10 most recently received message(s) zigbee2mqtt/Sinope Thermostat Office 10 most recently received message(s) Transmitted messages: Sinope Thermostat Office energy (sensor.sinope_thermostat_office_energy) MQTT discovery data: Topic: homeassistant/sensor/0x003c84fffe99dc10/energy/config Payload Subscribed topics: zigbee2mqtt/bridge/state 10 most recently received message(s) zigbee2mqtt/Sinope Thermostat Office 10 most recently received message(s) Transmitted messages: Triggers No triggers

claudegel commented 1 year ago

You can't use zha services if your thermostat and sensor are now in zigbee2mqtt You need to use another automation like this one

- id: 'Auto_Publish_Outdoor_Temprature'
  alias: Auto_Publish_Outdoor_Temprature
  description: Automatically Publish the outdoor temperature to thermostats
  trigger:
  - entity_id: sensor.outdoor_temprature_sensor  <--- put your sensor name here
    platform: state
  condition: []
  action:
  - data:
      payload_template: '{{ states(''**sensor.outdoor_temprature_sensor**'') | float * 100 |int }}' <--- put your sensor name here
      topic: zigbee2mqtt/<**FRIENDLY_NAME**>/set/thermostat_outdoor_temperature <--- name of your thermostat
    service: mqtt.publish

your sensor name is sensor.external_sensor_office_windows_humidity_pressure_temperature_temperature You need to find the name of your thermostat