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

How to change type Lamp/Switch to Outlet in eDomoticz so that Homekit recognices the device as an Outlet #255

Open
Bertels999 opened this issue Jan 18, 2023 · 1 comment

Comments

@Bertels999
Copy link

Bertels999 commented Jan 18, 2023

Hi, I have all my devices in Domoticz and use Homebridge to publish them in Homekit.

I have some outlet switches (Shelly Plug S) that appear as lights in Homekit and Homebridge. I also have some older outlet switches that appear as outlets in Homekit.

How can I configure eDomoticz so that the outlet switches appear as outlets in Homekit? When I ask siri to switch off my lights, it also switches of my outlets which is not what I want.

There is a workaround: I created virtual On/Off switches in domoticz for those switches that appear as lights and which I excluded in eDomoticz. These virtual switches are recognised by eDomotics and Homekit as outlets. Furthermore, I configured the virtual devices in Domoticz to issue http On/Off commands using json to the non-virtual domoticz devices (only On command shown):
http://localhost:8080/json.htm?type=command&param=switchlight&param=udevice&idx=YOUR_NON_VIRTUAL_IDX&switchcmd=On

In order that the virtual devices reflect the proper status, I also added to the non-virtual devices in Domoticz:
http://localhost:8080/json.htm?type=command&param=switchlight&param=udevice&idx=YOUR_VIRTUAL_IDX&switchcmd=On

The addition of "&param=udevice" updates the status without actualy switching on or off the device.

Thanks Bertels.

@PatchworkBoy
Copy link
Owner

Check the json api output for each, compare and find what’s different. Homebridge maps and presents “display as” options according to the types coming from Domoticz… (eg: things presenting as switches can be changed via home app between light , fan or switch. Things presenting as Lights can’t be changed. Outlets can normally be displayed as outlet or switch… but whether homebridge sees a light, switch or outlet is down to what Domoticz outputs.

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

2 participants