Hello I have an ESP8266 which is answering with a JSON
{“status”:“ok”,“ssid”:“Gr07_IoT”,“ip”:“192.168.3.11”,“t”:27.1,“h”:27}
t = temp, h = humidity
Im always Unknown or Unavailable
This is my configuration.yaml
sensor:
- platform: rest
name: projectroom
json_attributes:
- t
- h
resource: http://192.168.1.13/api/wifi-info
verify_ssl: false
value_template: "{{ value_json.t }}"
- platform: template
sensors:
projectroom_temperatur:
friendly_name: "Temperatur"
value_template: "{{ state_attr('sensor.projectroom')['t'] }}"
projectroom_humidity:
friendly_name: "Luftfeuchtigkeit"
value_template: "{{ state_attr('sensor.projectroom')['h'] }}"
With value_template I tried to change so much and use the Examples to Unterstand what I need. Im helpless right now