rvdvoorde / domoticz-homewizard

Plugin for Domoticz
http://www.domoticz.com/
GNU General Public License v3.0
12 stars 10 forks source link

Door/window sensors not visible #28

Closed EricMuhren closed 5 years ago

EricMuhren commented 5 years ago

Hi,

I'm new with Domoticz. I installed the plugin and all switches, energy, blinds and weather gadgets are working. But... I'm not able to see the door/window sensors in Domoticz. Can someone explain how to fix this? I can't find any related articles on the internet.

c4coer commented 5 years ago

quel le modèle des capteurs, car chez moi aucun probleme de ce type

EricMuhren commented 5 years ago

Hi,

I use KlikaanKlikuit ans Smartwares sensors. I think I found the problem in the plugin.py program. My sensor_type and sensor_name are returned as "unknown". There's is no "else" part in the program to handle these kind of sensors (unknown,unknown). So I changed the program a little bit and now it seems to work.

c4coer commented 5 years ago

tu peux partager, quel partie as tu changer merci

c4coer commented 5 years ago

quel partie as tu changé

EricMuhren commented 5 years ago

Hi,

I changed the code in this particular place. It's not generic, but it works for me. I think about making it generic.... It's possible to change the type of the sensor in Domoticz. So a door sensor I changed in "door contact" and a smoke switch I changed in "smoke detector". Now everything is working fine...!

Code added: code

rvdvoorde commented 5 years ago

Added this line since it solves a problem :)