Hey Gents,
i’m struggeling to get the actions via Event-Descriptions to work.
As the title says, i’m running OH 2.5.9-1.
I don’t know how to tell the version of the binding, but i installed it yesterday and OH2 is saying there are 0 apt updates available
. So i think it’s all up-to-date.
iCalendar-Binding is set up and is displaying correctly the start, title and end of the current and the next event:
First i’ve tried with an BEGIN
and END
-Command in the descrption, but as i couldn’t get that to work, i changed to only a BEGIN
-Command.
For now it’s BEGIN:btnTest:ON
.
The corresponding item is as simple as possible:
Switch btnTest
I’ve tried with and without presence-switch in the Event.
I’ve tried to see if the btn gets pressed via rules:
rule "Test Button changed"
when Item btnTest changed
then
var String ruleName = "Test Button Changed"
logInfo(ruleName, "Test Button changed to {}", btnTest.getState().toString())
logInfo(ruleName, "Test Button changed to {}", btnTest.state.toString())
end
rule "Test Button received command"
when Item btnTest received command
then
var String ruleName = "Test Button received command"
logInfo(ruleName, "Test Button changed to {}", receivedCommand.toString.upperCase)
end
but none of them ever writes anything to the logs - so i assume they never get fired.
I don’t know if there are any specific binding-logs in OH, as i’m still a bit new to OH.
All logs i know are audit, events and openhab.log.
events does report nothing during an event.
openhab.log looks like
2020-09-22 07:05:00.483 [vent.ItemStateChangedEvent] - systeminfo_computer_openHABianPi_sensors_cpuTemp changed from 60.1 to 60.7
2020-09-22 07:05:00.911 [vent.ItemStateChangedEvent] - icalendar_calendar_TestCal_current_title changed from UNDEF to Switch
2020-09-22 07:05:00.924 [vent.ItemStateChangedEvent] - icalendar_calendar_TestCal_current_start changed from UNDEF to 2020-09-22T07:05:00.000+0200
2020-09-22 07:05:00.931 [vent.ItemStateChangedEvent] - icalendar_calendar_TestCal_current_end changed from UNDEF to 2020-09-22T07:06:00.000+0200
2020-09-22 07:05:00.934 [vent.ItemStateChangedEvent] - icalendar_calendar_TestCal_next_title changed from Switch to UNDEF
2020-09-22 07:05:00.939 [vent.ItemStateChangedEvent] - icalendar_calendar_TestCal_next_start changed from 2020-09-22T07:05:00.000+0200 to UNDEF
2020-09-22 07:05:00.943 [vent.ItemStateChangedEvent] - icalendar_calendar_TestCal_next_end changed from 2020-09-22T07:06:00.000+0200 to UNDEF
I was hoping to get this to work without any rules, as my (far away) target is to switch a mqtt-thing on and off by event for a heating lamp for my gf’s terrarium.
Any help is highly appreciated!
Thanks in advance & kind regards
BaBa