hassio-addons/addon-node-red

Comparing entity state values #581

R5fan posted onGitHub

Im trying to compare two temperature sensor values in a current state node; one darksky outside temperature and one living room sensor. For some reason the test always results in False, regardless if I try <, >, <= or >=.

If I compare either sensor with a number I type in, it works fine. This may be my noobness, but Im stuck. This is the relevant part of the code:

[ { "id": "66bbaa80.b522e4", "type": "api-current-state", "z": "c9c66103.680d8", "name": "warmer inside", "server": "469aa6d5.5063f8", "version": 1, "outputs": 2, "halt_if": "sensor.living_temperature_2", "halt_if_type": "entity", "halt_if_compare": "gt", "override_topic": true, "entity_id": "sensor.dark_sky_temperature", "state_type": "num", "state_location": "payload", "override_payload": "msg", "entity_location": "data", "override_data": "msg", "blockInputOverrides": true, "x": 300, "y": 740, "wires": [ [ "f0c4f7fb.ee2368", "cb7ee5cd.f1e2b8" ], [ "f3bac0df.21769", "7130ecf9.6cc224" ] ] }, { "id": "469aa6d5.5063f8", "type": "server", "z": "", "name": "Home Assistant" } ]


Hi there,

Add-ons wrap existing applications. In this case, Node-RED. We do not create the Node-RED application itself or any of its nodes/palettes.

Your issue is not something the add-on itself can do anything about. Please report your issue upstream.

Thanks 👍

posted by frenck almost 5 years ago

I appreciate that. But I dont think its a general NR issue or question. The problem I have is comparing two (home assistant) entity states in a current state node, and the entity drop down there is specific to the HA port, is it not? Everything else seems to work ok, I can compare one entity state with numbers or text, or even some javascript, that all works, I just dont manage to compare to another HA entity state.

posted by R5fan almost 5 years ago

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

posted by addons-assistant[bot] almost 5 years ago

Fund this Issue

$0.00
Funded

Pull requests