iobroker-community-adapters / ioBroker.smappee

ioBroker adapter for smapee devices based on mqtt
MIT License
3 stars 5 forks source link

Set Smappee plug state to TREU/FALSE instead of ON/OFF #25

Closed oberstel closed 3 years ago

oberstel commented 4 years ago

Enhancement Request: This adapter sets pulg.x.state to ON / OFF instead of TRUE / FALSE. ON / OFF can't be used in VIS or within SCENES, TRUE / FALSE would be more standard and more convenient.

Please consider changing this.

forelleblau commented 3 years ago

Since the state - object reads shows a string from smappee, I left this one as is. But with v0.2.3 updates the switchON object with the state sent from smappee. So, you can use the switchON in vis as switch and as state-report. ok like this?

As an alternative I could introduce a 'stateBoleean' - object, that shows the state in true/false.