I have been searching in Pimatic but couldn’t find it. Can someone explain me what a dummy device is and what it is used for?
Thanks!
-
Dummy device
-
@Frans it has multiple uses. The whole dummy devices are based on rules.
They do nothing without any rules attached.Lets say you have a thermostat and there is no plugin for your thermostat but all you have is a bash script to control it.
You would then create a dummy thermostat and work with rules;
WHEN dummy-eco-button is pressed THEN execute “your/script.sh set eco on”.
Or, you can attach a variable to a dummy switch to visualise the state the variable is in(if you dont want to use a variable device)
So basicly a dummy is just an emty base for you to work with and use it how you want it, through the rules system.
-
@Gleno0h said in Dummy device:
The whole dummy devices are based on rules. They do nothing without any rules attached.
A dummy device basically a data entity. It does not have behaviour to synchronize its state with some external entity (a sensor or actuator). As @Gleno0h said the behaviour is typically added by rules, but it may also be changed or read by using the pimatic API. I just wanted to add this as it is common case. Say, you have a hardware which cannot be controlled directly by pimatic, but there is a nice piece of python code which can handle it. One way of integrating this with pimatic is to extend the python code so that it uses the pimatic API to synchonize the hardware state with the state of some Dummy device.
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law