Youāre replicating the functionality of the binary_sensor. Personally, Iād just use binary_sensor with the example configuration shown further up above.
Correct. I used sensor instead of binary sensor , so my output was devStatOk and i didnt like that. So I grouped it and updated the code so that mine shows open/closed.
i am still learning also and couldnt get it to work in binary sensor. And now i see why my code was wrong. Thanks for that. But if you use sensor you can use my code. I basically just did what binary sensor does just like e1miran said
@Ben_Ellis@commandcontrolit
Thatās what device_class is for in binary_sensor. Plus there is the added benefit of showing the correct āopen/closeā icons for each class without having to configure them oneself. Just remember device_class only works with binary_sensorā¦ not with the plain sensor.
I have the following configured in my binary sensors, and they all display state and icons correctly without me having to do any templating.
device_class: door device_class: window device_class: motion device_class: smoke
Folks,
I need your help on implementing Device support. I see some of you have smoke detector, lamps, cameras etc. Apparently there is a second page where you can see these devices. I donāt own any devices. So I donāt see anything (just a āNo other devices installed.ā message),
Sorry Iām not experienced in hassbian so I canāt provide step by step instructions.
It shouldnāt be different from any other addon however, there is nothing special to it. Probably doable if you change the config.json and server.js a little bit I suppose. There remaining parts has nothing special to it.
It would require you to run nodejs install in a docker container and run the server.js.
Seems like going the hass.io route would be the easiest in the long run, so Iām planning to just flash the SD card with hass.io and port over my current install from backup.