openHAB-version: 3.1
Hello to the forum,
I’d like to switch a light bulb connected to an PEHA 452 FU-EBIM energy measuring switch (EnOcean; EEP: D2-01-08) and set the dimmer to 100% via a rule. The rule is triggered by pressing a rocker switch PEHA PTM210 Easyclick 2 channel pushbutton (EnOcean; EEP: F6-02-01), generating the thing event DIR2_PRESSED.
The rule code is as follows (I used the build in rule editor of openHAB 3.1):
triggers:
- id: "1"
configuration:
thingUID: enocean:rockerSwitch:FT2PTYKW:d0876b89e7
event: DIR2_PRESSED
channelUID: enocean:rockerSwitch:FT2PTYKW:d0876b89e7:rockerswitchB
type: core.ChannelEventTrigger
conditions:
- inputs: {}
id: "3"
configuration:
itemName: PEHA452FUEBIMUnterputzdoppelaktor22_Switch
state: OFF
operator: =
type: core.ItemStateCondition
actions:
- inputs: {}
id: "2"
configuration:
itemName: PEHA452FUEBIMUnterputzdoppelaktor22_Switch
command: ON
type: core.ItemCommandAction
- inputs: {}
id: "4"
configuration:
itemName: PEHA452FUEBIMUnterputzdoppelaktor22_Dimmer
command: "100"
type: core.ItemCommandAction
But when pressing the button which generates the DIR2_PRESSED event, nothing happens (the light bulb stays dark) althought the button press is logged, the rule is fired and the items representing the channels of the PEHA 452 FU-EBIM energy measuring switch are set by sending the commands ON and 100. To me according to the following log everything is all right and the light bulb should be switched on:
22:13:46.815 [INFO ] [openhab.event.ItemStatePredictedEvent] - Item 'PEHA452FUEBIMUnterputzdoppelaktor22_Dimmer' predicted to become 100
22:13:46.817 [DEBUG] [e.internal.common.CombinedClassLoader] - Loaded class "org.openhab.core.thing.profiles.Profile" by classloader "org.eclipse.osgi.internal.loader.EquinoxClassLoader@41823675[org.openhab.core.thing:3.1.0(id=213)]" for "[interface org.openhab.core.thing.profiles.Profile, class org.openhab.core.thing.internal.profiles.SystemDefaultProfile]"
22:13:46.818 [DEBUG] [e.internal.common.CombinedClassLoader] - Loaded class "org.openhab.core.thing.profiles.ProfileTypeUID" by classloader "org.eclipse.osgi.internal.loader.EquinoxClassLoader@41823675[org.openhab.core.thing:3.1.0(id=213)]" for "[interface org.openhab.core.thing.profiles.Profile, class org.openhab.core.thing.internal.profiles.SystemDefaultProfile]"
22:13:46.823 [DEBUG] [e.influxdb.InfluxDBPersistenceService] - store ignored, InfluxDB is not yet connected
22:13:46.830 [DEBUG] [tor.internal.metrics.EventCountMetric] - Received event on topic openhab/items/PEHA452FUEBIMUnterputzdoppelaktor22_Dimmer/state.
22:13:46.832 [INFO ] [openhab.event.ChannelTriggeredEvent ] - enocean:rockerSwitch:FT2PTYKW:d0876b89e7:rockerswitchB triggered DIR2_RELEASED
22:13:46.835 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'PEHA452FUEBIMUnterputzdoppelaktor22_Switch' changed from OFF to ON
22:13:46.837 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'PEHA452FUEBIMUnterputzdoppelaktor22_Dimmer' changed from 0 to 100
22:13:46.851 [DEBUG] [ternal.transceiver.EnOceanTransceiver] - Sending data, type RADIO_ERP1, payload D2011E64FFA236020001FF9E1183FF00
22:13:46.886 [DEBUG] [ternal.transceiver.EnOceanTransceiver] - RESPONSE with code RET_OK payload 00 received
22:13:46.903 [DEBUG] [ternal.transceiver.EnOceanTransceiver] - RADIO_ERP1 with RORG VLD for FFA23602 payload D2011E64FFA236028100FF9E11834A00 received
22:13:48.661 [DEBUG] [ternal.transceiver.EnOceanTransceiver] - RADIO_ERP1 with RORG VLD for FF825601 payload D2076000000059FF8256010000FFFFFFFF4700 received
22:13:48.687 [DEBUG] [ternal.transceiver.EnOceanTransceiver] - RADIO_ERP1 with RORG _4BS for FF825600 payload A50059010DFF8256000000FFFFFFFF4900 received
22:13:54.762 [DEBUG] [.core.karaf.internal.FeatureInstaller] - Running scheduled sync job
22:13:55.667 [DEBUG] [ternal.transceiver.EnOceanTransceiver] - RADIO_ERP1 with RORG VLD for FF825601 payload D2076000000066FF8256010000FFFFFFFF4700 received
22:13:55.673 [DEBUG] [ternal.transceiver.EnOceanTransceiver] - RADIO_ERP1 with RORG _4BS for FF825600 payload A50066010DFF8256000000FFFFFFFF4700 received
Can somebody tell me what’s going wrong here and how I can “convice” my light bulb to switch to on?
Regards from Germany
Ansgar