When the virtual balcony light is turned on in the Domoticz Web interface, the virtual garage light turns on and the actual balcony and garage lights turn on, just as expected. When the actual balcony light is turned on, the virtual balcony light turns on but both the real and virtual garage lights remain off. Seems strange to me, is that the expected behaviour?
Just to be clear, I would like to be able to turn the garage light on or off on its own without effect on the balcony light. But the garage light must follow the balcony light when the later is turned off or on. This is easy to do with a dzVents script which is how I used to do it. I created a new test group with two other switches just in case there was a script somewhere interfering with the first group.
More info:
Domoticz version: 2023.1
Both lights are connected to Wi-Fi switches running Tasmota. That means that the balcony light switch sends the following MQTT message when switched on.
Code: Select all
[domoticz/in] - {"idx":195,"nvalue":1,"svalue":"","Battery":100,"RSSI":7}
That's it, no other MQTT messages are transmitted and the garage light does not get turned on.
When the virtual balcony light is turned on in the Web interface or with an HTTP request,
Code: Select all
curl "http://192.168.1.22:8080/json.htm?type=command¶m=switchlight&idx=195&switchcmd=On"
{
"status" : "OK",
"title" : "SwitchLight"
}
Code: Select all
[domoticz/out] - {
"Battery" : 255,
"LastUpdate" : "2023-06-23 02:33:08",
"RSSI" : 12,
"description" : "",
"dtype" : "Light/Switch",
"hwid" : "2",
"id" : "00014113",
"idx" : 195,
"name" : "Balcony",
"nvalue" : 1,
"stype" : "Switch",
"svalue1" : "0",
"switchType" : "On/Off",
"unit" : 1
}
[domoticz/in] - {"idx":195,"nvalue":1,"svalue":"","Battery":100,"RSSI":7}
[domoticz/out] - {
"LastUpdate" : "2023-06-23 02:33:08",
"Name" : "test",
"Status" : "On",
"Timers" : "false",
"Type" : "Group",
"idx" : 17
}
[domoticz/out] - {
"Battery" : 255,
"LastUpdate" : "2023-06-23 02:33:08",
"RSSI" : 12,
"description" : "cesmart plug",
"dtype" : "Light/Switch",
"hwid" : "2",
"id" : "000140A7",
"idx" : 87,
"name" : "Garage",
"nvalue" : 1,
"stype" : "Switch",
"svalue1" : "1",
"switchType" : "On/Off",
"unit" : 1
}