Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - platform: rest
- name: "Flowcloud enhedsoversigt"
- resource: https://frese-api.cloud.atkins.dk/v1/poc/devices/all?
- value_template: '{{ value_json.status }}'
- scan_interval: 600
- json_attributes:
- - devices
- headers:
- API_KEY: 63a93b31-7a00-4efd-8c26-e261402a5a92
- connection: keep-alive
- - platform: template
- sensors:
- flowcloud_outlet_temperature:
- value_template: "{{ state_attr('sensor.flowcloud_enhedsoversigt', 'devices')[0].json_value.outlet_temperature }}"
- unit_of_measurement: "°C"
- flowcloud_inlet_temperature:
- value_template: "{{ state_attr('sensor.flowcloud_enhedsoversigt', 'devices')[0].json_value.inlet_temperature }}"
- unit_of_measurement: "°C"
- ### DELTA-T ###
- - platform: template
- sensors:
- delta_t:
- value_template: >
- {{ '%0.1f' | format(states('sensor.flowcloud_inlet_temperature') | float -
- states('sensor.flowcloud_outlet_temperature') | float) }}
- unit_of_measurement: "°C"
- friendly_name: Delta-T
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement