Newcomer in need of rule help / explanation

Nothing that I can see relating to Rules

Snippet during testing time:

2018-03-18 22:25:25.897 [vent.ItemStateChangedEvent] - network_pingdevice_e8d5d9eb_lastseen changed from 2018-03-18T22:17:55.506+0000 to 2018-03-18T22:25:25.865+0000
2018-03-18 22:25:54.424 [vent.ItemStateChangedEvent] - network_servicedevice_192_168_1_90_80_lastseen changed from 2018-03-18T22:24:54.371+0000 to 2018-03-18T22:25:54.406+0000
2018-03-18 22:26:09.109 [hingStatusInfoChangedEvent] - ‘hue:0210:00178813a4d9:2’ changed from OFFLINE: Hue bridge reports light as not reachable. to ONLINE
2018-03-18 22:26:16.008 [vent.ItemStateChangedEvent] - network_pingdevice_1d333ac1_lastseen changed from 2018-03-18T22:25:15.730+0000 to 2018-03-18T22:26:15.984+0000
2018-03-18 22:26:16.009 [vent.ItemStateChangedEvent] - network_pingdevice_1d333ac1_latency changed from 1488.0 to 224.0
2018-03-18 22:26:25.991 [vent.ItemStateChangedEvent] - network_pingdevice_e8d5d9eb_latency changed from 99.0 to 58.0

There is nothing about your phone being online or not.
In your item file remove the { channel=“hhhdajfhhf” } bit

On that screen:

click the online button and link the channel with the item presence_mobile_me

Was in a rush this morning so should have checked I was copying the log part i needed. 3-18 22:25:25.867 [vent.ItemStateChangedEvent] - network_pingdevice_e8d5d9eb_online changed from OFF to ON

Ive taken the {channel blah bla} bit out of the items line and then gone into Paper UI and clicked Online then Linked Items + and created a new line to so it appears as Online (presence_mobile_me) next to the Blue button that is filled with White.

Cant test it out till I get home though. I really done see how it can be this difficult to link devices for rules - the Dashboard Web Interface was easy to set up with the buttons for lights on TV mute etc…

No one said it was easy.
You want to control your home or make it smart. That takes a computer and programing it.
The smart won’t get smart by itself. A human need to tell the computer what, when and how to do things.

I am still learning from this forum and others everyday.

It’s part of the pleasure of openHAB

1 Like

An interesting error log:
018-03-19 20:28:59.363 [vent.ItemStateChangedEvent] - presence_mobile_me changed from OFF to ON
and I received a push notification! Finally, now I need to work out how this wasnt a fluke and to link a light change or something.

Also got it using the auto generated channels/links

rule “Phone Presence”
Item network_pingdevice_e8d5d9eb_online changed
pushover(“Phone AUTO NAME Presence CHANGED”, 1, “Phone off the lan”, “”, “none”)

Trying to add Hue light brightness changes now - running just when i started walking i think.

It wasn’t a fluke
Do you understand why it worked?

I understand the logic when using the autonames - trying to prove that to myself at the moment with Hue light manipulation. Trying at least lol.

Your patience and tutoring are greatly appreciated.

The auto names are good. It’s even better to put your own name when creating an item for a thing. Your can have your own naming pattern.
Example: House_LivingRoom_WallLight



Worked out the Hue light brightness - do you know how to construct “If current time is before X time” in a rule? Found CRON expressions and various options but not sure they can be used in a rules file how i am thinking.

It’s not easy but there are guides on the forum. Do a search.