Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device status isn't updated #166

Open
SandroK opened this issue Oct 1, 2020 · 0 comments
Open

Device status isn't updated #166

SandroK opened this issue Oct 1, 2020 · 0 comments

Comments

@SandroK
Copy link

SandroK commented Oct 1, 2020

I have installed homekit2mqtt in a docker container
(https://hub.docker.com/r/homesmarthome/homekit2mqtt)

It works, I can switch lights on an off
My config.json

{"LichtSpeisekammer": { "id": "LichtSpeisekammer", "name": "Licht Speisekammer", "services": [ { "name": "Licht Speisekammer", "service": "Lightbulb", "topic": { "setOn": "zigbee2mqtt/LichtSpeisekammer/set/state", "statusOn": "zigbee2mqtt/LichtSpeisekammer", "setBrightness": "zigbee2mqtt/LichtSpeisekammer/set/brightness", "statusBrightness": "zigbee2mqtt/LichtSpeisekammer", "setHue": "", "statusHue": "", "setSaturation": "", "statusSaturation": "", "setColorTemperature": "", "statusColorTemperature": "", "statusRGB": "", "setRGB": "" }, "payload": { "onTrue": "ON", "onFalse": "OFF", "brightnessFactor": 2.54, "hueFactor": null, "saturationFactor": null }, "json": { "statusOn": ".state", "statusBrightness": "brightness" }, "config": {}, "props": {} } ], "payload": {}, "config": {} } }

One json attribute is preceded by a dot, the other one isn't. But neither status is updated when I change it outside of Homekit

The status comes in the topic
zigbee2mqtt/LichtSpeisekammer
and the payload looks like
{"state":"ON","brightness":26,"linkquality":0}

I thus added the json property in the config

When I run homekit2mqtt with verbosity set to debug, I don't see any reaction to state changes outside of Homekit either. No output at all.

Obviously, I'd like it to work both ways and update the status.
Is my use of the json property correct?
Shouldn't I see the mqtt messages coming in?
What might be the issue?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant