Hi,
I have Openhab 3.4.2 Release running in docker container. I have a problem, that sometimes all the “switch” items switch ON. Usually during night, one time it also happend during the day. It happens aprox. one time per week, at different days and time.
- I have OpenHAB Cloud connected
- I use OpenHab Android App with Alarm time synchronization enabled
- I use one rule which switch on one light at “Alarm” time (synchronized from the phone).
- I use Siemens PLC binding which control lights. Light status (ON/OFF) is stored in PLC. OpenHab just send commands and show actual state.
I checked Openhab Log. I can see there “received command ON”. But I dont see from where is it comming. Which Logger I should change to see more details? See actual Looger config bellow.
Does anybody have some idea what could be wrong?
Thanks.
OpenHab Log. See item “BedroomLeftWallLightSwitch”. It switched ON by itself. Later I switched it OFF from the phone App.
2023-04-01 13:30:45.158 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'PhotovoltaicInverter_AcPower' changed from 2922 W to 2627 W
2023-04-01 13:30:45.158 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Photovoltaicinverter_UpperPVPower' changed from 1987 W to 1834 W
2023-04-01 13:31:33.703 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Outsidetemperaturesensor_Temperature' changed from 12.5625 °C to 12.4375 °C
2023-04-01 13:32:28.172 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Boilerlowertemperaturesensor_Temperature' changed from 43 °C to 42.9375 °C
2023-04-01 13:33:07.245 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'BedroomLeftWallLightSwitch' received command ON
2023-04-01 13:33:07.251 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'BedroomLeftWallLightSwitch' predicted to become ON
2023-04-01 13:33:07.254 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'BedroomLeftWallLightSwitch' changed from OFF to ON
2023-04-01 13:33:07.631 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'BedroomMainLightSwitch' received command ON
2023-04-01 13:33:07.636 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'BedroomMainLightSwitch' predicted to become ON
2023-04-01 13:33:07.640 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'BedroomMainLightSwitch' changed from OFF to ON
2023-04-01 13:33:08.067 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'BedroomMainLightSwitch' received command OFF
2023-04-01 13:33:08.069 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'BedroomMainLightSwitch' predicted to become OFF
2023-04-01 13:33:08.072 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'BedroomMainLightSwitch' changed from ON to OFF
2023-04-01 13:33:08.511 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'BedroomRightWallLightSwitch' received command ON
2023-04-01 13:33:08.520 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'BedroomRightWallLightSwitch' predicted to become ON
2023-04-01 13:33:08.528 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'BedroomRightWallLightSwitch' changed from OFF to ON
2023-04-01 13:33:09.296 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'BedroomMainLightSwitch' received command ON
2023-04-01 13:33:09.299 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'BedroomMainLightSwitch' predicted to become ON
2023-04-01 13:33:09.301 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'BedroomMainLightSwitch' changed from OFF to ON
2023-04-01 13:33:13.728 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'BedroomClosetLightSwitch' received command ON
2023-04-01 13:33:13.733 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'BedroomClosetLightSwitch' predicted to become ON
2023-04-01 13:33:13.738 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'BedroomClosetLightSwitch' changed from OFF to ON
2023-04-01 13:33:23.442 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Firstfloorbathroomtemperaturesensor_Temperature' changed from 22.4375 °C to 22.375 °C
2023-04-01 13:33:27.505 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'LowTarif' received command ON
2023-04-01 13:33:27.519 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'LowTarif' predicted to become ON
2023-04-01 13:33:27.527 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'LowTarif' changed from OFF to ON
2023-04-01 13:33:28.003 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Bedroomtemperaturesensor_Temperature' changed from 21.5625 °C to 21.625 °C
2023-04-01 13:33:28.008 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Officetemperaturesensor_Temperature' changed from 21.5625 °C to 21.625 °C
2023-04-01 13:33:29.352 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Boilerlowertemperaturesensor_Temperature' changed from 42.9375 °C to 42.875 °C
2023-04-01 13:33:32.513 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'FamilyRoomLedStripLightColor' received command OFF
2023-04-01 13:33:32.522 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'FamilyRoomLedStripLightColor' predicted to become 226,97,100
2023-04-01 13:33:34.204 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Outsidetemperaturesensor_Temperature' changed from 12.4375 °C to 12.375 °C
2023-04-01 13:33:38.496 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'LivingRoomLightSwitch' received command ON
2023-04-01 13:33:38.501 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'LivingRoomLightSwitch' predicted to become ON
2023-04-01 13:33:38.507 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'LivingRoomLightSwitch' changed from OFF to ON
2023-04-01 13:33:51.115 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'HynekPhoneBatteryLevel' received command 72
2023-04-01 13:33:51.117 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'HynekPhoneBatteryLevel' changed from 69 to 72
2023-04-01 13:34:06.951 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'BedroomLeftWallLightSwitch' received command OFF
2023-04-01 13:34:06.953 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'BedroomLeftWallLightSwitch' predicted to become OFF
2023-04-01 13:34:06.954 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'BedroomLeftWallLightSwitch' changed from ON to OFF
2023-04-01 13:34:07.332 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'BedroomMainLightSwitch' received command OFF
2023-04-01 13:34:07.333 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'BedroomMainLightSwitch' predicted to become OFF
2023-04-01 13:34:07.335 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'BedroomMainLightSwitch' changed from ON to OFF
2023-04-01 13:34:07.729 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'BedroomRightWallLightSwitch' received command OFF
2023-04-01 13:34:07.731 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'BedroomRightWallLightSwitch' predicted to become OFF
Actual Logger settings:
Logger │ Level
───────────────────────────────────────────────────┼──────
ROOT │ WARN
javax.jmdns │ ERROR
javax.mail │ ERROR
openhab.event │ INFO
openhab.event.AddonEvent │ ERROR
openhab.event.ChannelDescriptionChangedEvent │ ERROR
openhab.event.InboxUpdatedEvent │ ERROR
openhab.event.ItemAddedEvent │ ERROR
openhab.event.ItemChannelLinkAddedEvent │ ERROR
openhab.event.ItemChannelLinkRemovedEvent │ ERROR
openhab.event.ItemRemovedEvent │ ERROR
openhab.event.ItemStateEvent │ ERROR
openhab.event.RuleAddedEvent │ ERROR
openhab.event.RuleRemovedEvent │ ERROR
openhab.event.RuleStatusInfoEvent │ ERROR
openhab.event.StartlevelEvent │ ERROR
openhab.event.ThingAddedEvent │ ERROR
openhab.event.ThingRemovedEvent │ ERROR
openhab.event.ThingStatusInfoEvent │ ERROR
openhab.event.ThingUpdatedEvent │ ERROR
org.apache.cxf.jaxrs.sse.SseEventSinkImpl │ ERROR
org.apache.cxf.phase.PhaseInterceptorChain │ ERROR
org.apache.karaf.jaas.modules.audit │ INFO
org.apache.karaf.kar.internal.KarServiceImpl │ ERROR
org.apache.karaf.shell.ssh.SshUtils │ ERROR
org.apache.karaf.shell.support │ OFF
org.apache.sshd │ ERROR
org.eclipse.lsp4j │ OFF
org.jupnp │ ERROR
org.openhab │ INFO
org.openhab.binding.http │ INFO
org.ops4j.pax.url.mvn.internal.AetherBasedResolver │ ERROR
org.ops4j.pax.web.pax-web-runtime │ OFF
su.litvak.chromecast.api.v2.Channel │ ERROR
Example of one PLC Thing configuration:
UID: simatic:generic_device:HomePlcBridge:BedroomClosetPlcThing
label: Bedroom closet PLC thing
thingTypeUID: simatic:generic_device
configuration: {}
bridgeUID: simatic:bridge:HomePlcBridge
channels:
- id: Light
channelTypeUID: simatic:chSwitch
label: Light
description: ""
configuration:
commandAddress: DB1.DBX6.6
stateAddress: DB1.DBX6.7