Hi all,
When I’m reading data from a webserver in a web browser with the following URL: https://192.168.1.2/api/menutree/datapoint_desc.json?SessionId=73539bf7-344b-4a51-9390-523705b616f0&Id=671
I got a nice answer:
However, when I’m trying to code into Home Assistant configuration.yaml file, with the following code, it fails:
# Sensors
rest:
- verify_ssl: false
scan_interval: 10
resource: https://192.168.1.2/api/auth/login.json?user=<mylogin>&pwd=<mypassword>
sensor:
- name: "sid_token"
unique_id: sid_token
value_template: '{{ value_json.SessionId }}'
- verify_ssl: false
scan_interval: 1
resource: https://192.168.1.2/api/menutree/datapoint_desc.json?SessionId={{ states.sensor.sid_token.state }}&Id=671
sensor:
- name: "Temp ext."
unique_id: temp_ext
value_template: '{{ value_json.Description.Value }}'
I have no error on my home assistant configuration, I just failed to get my value into the development tools → stats of entities
Any help would be appreciate
Precision: I’m a total beginner in coding in yaml