I’m not sure if I’m going about this the best way. Ideally, I want to display a round icon that is either red, yellow, or green along with a text. That is the important part. I also have some other data I’m unsure if I want to track as a sensor or have on hand at the moment (so more sensors/atrributes vs more input text).
Right now I have this template in HA and I cannot figure out how to send any data to it.
template:
- sensor:
- name: "Window Status"
state: "{{ state_attr('sensor.window_status_data', 'status') }}"
attributes:
reason: "{{ state_attr('sensor.window_status_data', 'reason') }}"
indoor_dew_point: "{{ state_attr('sensor.window_status_data', 'indoorDewPoint') }}"
outdoor_dew_point: "{{ state_attr('sensor.window_status_data', 'outdoorDewPoint') }}"
dew_point_difference: "{{ state_attr('sensor.window_status_data', 'dewPointDifference') }}"
humidity_difference_limit: "{{ state_attr('sensor.window_status_data', 'humidityDifferenceLimit') }}"
icon: >-
{% if is_state_attr('sensor.window_status_data', 'status', 'unsafe') %}
mdi:close-circle
{% elif is_state_attr('sensor.window_status_data', 'status', 'caution') %}
mdi:alert-circle
{% elif is_state_attr('sensor.window_status_data', 'status', 'safe') %}
mdi:check-circle
{% else %}
mdi:help-circle
{% endif %}
Now nodered outputs this, and I can modify it to whatever, of course…
{"status":"unsafe","reason":"Too hot outside (73°F).","indoorDewPoint":"56.04","outdoorDewPoint":"50.84","dewPointDifference":"5.20","humidityDifferenceLimit":"2.60"}
And yes, my integrations are working properly, I’m sure there are minor updates, but I’m fully up to date on both ends as of two weeks ago. I’m just stumped since call service is now actions, and the way things are done feels a bit backwards to me. Basically I can’t find any combination of device type or method that allows a simple update of multiple parameters (unless it’s a switch, sensor, or basic text box). And my searches yield nothing, so that tells me it is likely easier than making a post here lol.
I’m also open to trying it a different way; everything in NR is solid up to the point of sending the data to HA. Thanks!