Pimatic folks,
I have built an automated watering solution (based on a Gardena watering computer, combined with a yoctopuce relais and a raspberry) for my balcony.
I am using the DummyHeatingThermostat-class for setting the watering time:
{
"class": "DummyHeatingThermostat",
"id": "wateringTime",
"name": "Bewässerungsdauer in Minuten:",
"guiShowModeControl": false,
"guiShowPresetControl": false
}
Giving this nice device:
Now I have a rule to be called whenever the watering time is changed. This rule calls a SetWateringTime.sh-shell script with the wateringtime as a parameter.
if [$wateringTime.temperatureSetpoint is decreasing] or [$wateringTime.temperatureSetpoint is increasing]
then
execute "/home/DerIng/scripts/Pimatic/SetWateringTime.sh $wateringTime.temperatureSetpoint"
Problem:
When changing the device value for the watering time the shell script is not called everytime!
No matter how long you wait in between before changing the value - it’s just a matter of “luck”!
The exact same behaviour exists when using the DummyDimmer-class for e.g. volume control of an mpd-daemon.
So it’s not related to the DummyHeatingThermostat-class only!
Example device:
{
"class": "DummyDimmer",
"id": "radio-volume",
"name": "Radio Volume"
}
Example rule:
if [$radio-volume.dimlevel is decreasing] or [$radio-volume.dimlevel is increasing]
then
execute "/usr/bin/mpc volume $radio-volume.dimlevel"
So any help is welcome to solve this issue.
Many thanks in advance,
DerIng