Hello Every Body
I have two instance onf Home assistant one on Raspberry pi4 (server 1 10.0.0.72)and one other on docker Nas Synology (serveur 2 10.0.0.70)
My goal is to get the information about sensor (Zigbee on Deconz) on server 1 to the server 2. I found this integration :
I have make 3 tests
On server 1 i have this sensor : sensor.couloir_temp zigbee device xiami Temperatur and Humidity in this case sensor for temperatur
On Server 2 I have add this code in the Configuration.yaml
############################################################
## ##
## Sensor rest home assitant Pi ##
## ##
############################################################
- platform: rest
resource: http://10.0.0.72:8123/api/states/sensor.couloir_temp
username: (login of session on server1)
password: (password of session on server1)
name: test1
value_template: '{{ value_json.state }}'
unit_of_measurement: "°C"
- platform: rest
resource: http://10.0.0.72:8123/api/states/sensor.couloir_temp
name: test2
value_template: '{{ value_json.state }}'
unit_of_measurement: "°C"
- platform: rest
resource: http://10.0.0.72:5000/sensor
username: (login of session on server1)
password: (password of session on server1)
authentication: basic
headers:
User-Agent: Home Assistant
Content-Type: application/json
On server 2 I have two sensor (sensor.test1 and sensor.test2 with value unknow)
On server1 I have this notify :
Login attempt failed
Login attempt or request with invalid authentication from 10.0.0.70
When I restart server 1 value of sensor in server 2 change from “unknow” to “unavailable”
Some one can help me ?