NRCHKB / node-red-contrib-homekit-bridged

Node-RED Contribution - HomeKit Bridged : Node-RED nodes to simulate Apple HomeKit devices.
https://nrchkb.github.io
MIT License
412 stars 52 forks source link

[Help needed]: Set a device as unreachable #506

Open Tazintosh opened 1 year ago

Tazintosh commented 1 year ago

Your Current NRCHKB Plugin Version

1.4.3

Operating System

macOS

How can we help?

Hi folks,

I'm using a Shelly Plus 1 to control my old gaz heater and turn it into an HomeKit compatible device. For this, I've created a "thermostat" in NRCHKB which current temperature is feed by my Xiami Air Purifier (all using Node-RED and NRCHKB). So far, so good. However, I've installed a physical switch button to my Shelly in case I need to override any command and force heating. To make this clean, whenever the physical switch button is turned on (I can detect this, no prob), I would like to "disable" my thermostat UI on Home.app. This way, it would no be usable (like "no response"), thus visually telling me that the physical button is actually in override mode.

For testing, I've tried to Inject to the thermostat some NO_REPONSE, like {"CurrentTemperature": "NO_RESPONSE"} etc. I also tried to inject msg.hap.reachable to false. No luck with either of them. With NO_RESPONSE, the message only appears when touching the thermostat to enter the detailed view. It's not instantly visible on the default icon. Please note my Shelly switch is set in NRCHKB as a link child of the thermostat.

What msg can I send to my thermostat so it's fully deactivate while the physical button is on? Thanks a lot in advance.

Any more details?

If this is specific to some hardware or specific software version, please explain here.

Any code or functions to add?

No response

twocolors commented 9 months ago

@Shaquu for TemperatureSensor also not work NO_RESPONSE

node-red  | [kubik3 NR@Температура@Температура@Current Temperature] characteristic value expected valid finite number and received "NaN" (number)
node-red  | 23 Sep 08:34:58 - [info] [debug:debug 3]
node-red  | { CurrentTemperature: 'NO_RESPONSE' }
Shaquu commented 3 weeks ago

Anyone tried in 1.6.1 or latest dev?