I have been using this plugin for a while and it works great.
But i find my self ending up only using the plugin to publish and recieve messages, instead of adding devices to the subscription, but instead creating a virtual device to interact with the payloads.
The reason is for example.
I recieve a Sub message, and i create a device from that, with buttons.
That create example a device with following buttons:
0 Locked
1 Unlocked
2 Not locked
To be able to control it, and also after all if imperihome should recognize it as a lock, i would need to use 0 and 100
So i would need
0 Unlock
100 Lock
Can anyone tell me how to manage status and commands in the same Sub/Pub device? Since Sub have example Unlocked but we want to send Unlock back.
Cause i have always problem to deal with statuses that is different than the command. (I understand if a Sub send ON, then you simply send ON or OFF back, cause it is the same)
If anyone can shed a glance on this i would be greatful, else i will continue to create virtual devices/events :-)
But i find my self ending up only using the plugin to publish and recieve messages, instead of adding devices to the subscription, but instead creating a virtual device to interact with the payloads.
The reason is for example.
I recieve a Sub message, and i create a device from that, with buttons.
That create example a device with following buttons:
0 Locked
1 Unlocked
2 Not locked
To be able to control it, and also after all if imperihome should recognize it as a lock, i would need to use 0 and 100
So i would need
0 Unlock
100 Lock
Can anyone tell me how to manage status and commands in the same Sub/Pub device? Since Sub have example Unlocked but we want to send Unlock back.
Cause i have always problem to deal with statuses that is different than the command. (I understand if a Sub send ON, then you simply send ON or OFF back, cause it is the same)
If anyone can shed a glance on this i would be greatful, else i will continue to create virtual devices/events :-)
Comment