I am building a room automation having roller shutters, lights and dimmers. I was able to successfully configure the lights. Now I have a few doubts regarding the dimmers and roller shutters.
I have only two values on the bus while dimming. When I press the dimmer switch once it gives me 09 and when I press it again it gives me 08 (Basically it changes from 09 to 08 when dimming). How do I map it in the items file?
My roller shutter switches have a different local source address. Do I have to create separate things file for it? My current things file is below:
I could solve my second problem on my own. A different local source address worked in the same things file.
I am still looking for solutions for my mappings problem.
My problem is I just have two ga for each roller
For example: 0/0/47 00 Starts opening the blinds
0/0/42 00 Stops
0/0/47 01 Closes the blinds
Can someone help me?
I have tried this but doesn’t work
Things file:
import org.eclipse.smarthome.core.items
import org.eclipse.smarthome.core.things
import org.eclipse.smarthome.core.persistence
import org.eclipse.smarthome.core.library.types
import org.eclipse.smarthome.core.library.items
import org.eclipse.smarthome.model.script.actions
rule "Switch_ON_LeftLights1"
when
Item demoSwitch1 changed from OFF to ON
then
demoSwitch1.sendCommand(ON)
end
rule "Switch_ON_LeftLights2"
when
Item demoSwitch2 changed from OFF to ON
then
demoSwitch2.sendCommand(ON)
end
rule "Switch_ON_LeftLights3"
when
Item demoSwitch3 changed from OFF to ON
then
demoSwitch3.sendCommand(ON)
end
rule "Switch_ON_CentreLights"
when
Item demoSwitch4 changed from OFF to ON
then
demoSwitch4.sendCommand(ON)
end
rule "Switch_ON_OtherLights"
when
Item demoSwitch5 changed from OFF to ON
then
demoSwitch5.sendCommand(ON)
end
rule "Switch_OFF_LeftLights1"
when
Item demoSwitch1 changed from ON to OFF
then
demoSwitch1.sendCommand(OFF)
end
rule "Switch_OFF_LeftLights2"
when
Item demoSwitch2 changed from ON to OFF
then
demoSwitch2.sendCommand(OFF)
end
rule "Switch_OFF_LeftLights3"
when
Item demoSwitch3 changed from ON to OFF
then
demoSwitch3.sendCommand(OFF)
end
rule "Switch_OFF_CentreLights"
when
Item demoSwitch4 changed from ON to OFF
then
demoSwitch4.sendCommand(OFF)
end
rule "Switch_OFF_OtherLights"
when
Item demoSwitch5 changed from ON to OFF
then
demoSwitch5.sendCommand(OFF)
end
rule "Switch_On_AllLights"
when
Item demoSwitch6 changed from OFF to ON
then
demoSwitch1.sendCommand(ON)
demoSwitch2.sendCommand(ON)
demoSwitch3.sendCommand(ON)
demoSwitch4.sendCommand(ON)
demoSwitch5.sendCommand(ON)
end
rule "Switch_Off_AllLights"
when
Item demoSwitch6 changed from ON to OFF
then
demoSwitch1.sendCommand(OFF)
demoSwitch2.sendCommand(OFF)
demoSwitch3.sendCommand(OFF)
demoSwitch4.sendCommand(OFF)
demoSwitch5.sendCommand(OFF)
end
2018-08-30 12:38:14.327 [vent.ItemStateChangedEvent] - demoSwitch4 changed from ON to OFF
2018-08-30 12:38:14.329 [ome.event.ItemCommandEvent] - Item 'demoSwitch4' received command OFF
2018-08-30 12:38:15.432 [ome.event.ItemCommandEvent] - Item 'demoSwitch6' received command ON
2018-08-30 12:38:15.452 [vent.ItemStateChangedEvent] - demoSwitch6 changed from OFF to ON
2018-08-30 12:38:15.455 [ome.event.ItemCommandEvent] - Item 'demoSwitch1' received command ON
2018-08-30 12:38:15.462 [ome.event.ItemCommandEvent] - Item 'demoSwitch2' received command ON
2018-08-30 12:38:15.469 [ome.event.ItemCommandEvent] - Item 'demoSwitch3' received command ON
2018-08-30 12:38:15.475 [ome.event.ItemCommandEvent] - Item 'demoSwitch4' received command ON
2018-08-30 12:38:15.478 [ome.event.ItemCommandEvent] - Item 'demoSwitch5' received command ON
2018-08-30 12:38:15.503 [ome.event.ItemCommandEvent] - Item 'demoSwitch1' received command ON
2018-08-30 12:38:15.508 [vent.ItemStateChangedEvent] - demoSwitch1 changed from OFF to ON
2018-08-30 12:38:15.510 [vent.ItemStateChangedEvent] - demoSwitch2 changed from OFF to ON
2018-08-30 12:38:15.512 [vent.ItemStateChangedEvent] - demoSwitch3 changed from OFF to ON
2018-08-30 12:38:15.515 [ome.event.ItemCommandEvent] - Item 'demoSwitch3' received command ON
2018-08-30 12:38:15.517 [ome.event.ItemCommandEvent] - Item 'demoSwitch2' received command ON
2018-08-30 12:38:15.522 [ome.event.ItemCommandEvent] - Item 'demoSwitch4' received command ON
2018-08-30 12:38:15.526 [vent.ItemStateChangedEvent] - demoSwitch4 changed from OFF to ON
2018-08-30 12:38:15.529 [vent.ItemStateChangedEvent] - demoSwitch5 changed from OFF to ON
2018-08-30 12:38:15.531 [ome.event.ItemCommandEvent] - Item 'demoSwitch5' received command ON
Could someone please help me on this? @Dim Could you please look into this.
Thanks in advance!
What if I don’t know which actuator is being used?
A bus was available which was receiving and sending signals when buttons were pressed.
First, I installed KNXD to read the bus (I have used TP UART to connect the bus to the Raspberry Pi). Then I used openHAB for automation (using KNX binding).
When I was able to switch lights on/off using OpenHAB basic UI, vbusmonitor command was not able to monitor the bus. Now when the openHAB is not able to send signals to the bus I am able to read the bus using vbusmonitor. Do you know why is there such a problem?
My understanding is that OpenHAB is communicating with KNXD to read/write the bus. Am I missing something here?
most possibly because you have configured knxd to allow only one tunneling connection?
Try to switch knxd to act as a router and use router type in your knx binding to see if this helps.
If I change to ROUTER configuration it is throwing as exception.
Anyways, now with the same TUNNEL configuration I am able to monitor the bus using vbusmonitor as well. So no issues