Issue of the topic: I followed the document for creating a sitemap to create my 1st sitemap. I added all mobile phones, I can see them all in basicui, but the problem is: in the webap I can put the slider to on, but the color of the wifi icon remains grey. From android app, I put the switch to on, but it returns immediately to off.
All devices in Configuration > Things are “Online”. Devices are connrcted to network.
bitmap or vector, I didn’t find that setting. All settings are default.
All 3 channels are selected for mobile phones.
When I click Show properties:
|arp_state |Disabled|
|dhcp_state |No access right for port 67. Bound to port 6767 instead. Port forwarding necessary!
event log
2020-01-01 21:10:06.913 [ome.event.ItemCommandEvent] - Item 'Presence_Mobile_Haris' received command ON
2020-01-01 21:10:06.916 [nt.ItemStatePredictedEvent] - Presence_Mobile_Haris predicted to become NULL
2020-01-01 21:10:09.288 [ome.event.ItemCommandEvent] - Item 'Presence_Mobile_Haris' received command OFF
2020-01-01 21:10:09.291 [nt.ItemStatePredictedEvent] - Presence_Mobile_Haris predicted to become NULL
If the item is configured correctly it will take care of itself but you should not have the predicted to become NULL in the logs. Post your item config to see if there may be an issue.
rule "start gPresent on system start"
when
System started
then
Present.sendCommand(OFF) // assume no one is home
end
rule "gPresent updated, at least one change of state"
when
Item gPresent received update
then
// someone came home
if(gPresent.state == ON && Present.state != ON) {
Present_Timer.postUpdate(OFF) // cancel the timer if necessary
Present.sendCommand(ON)
}
// no one is home and timer is not yet ticking (otherwise endless loop)
else if(gPresent.state == OFF && Present.state != OFF && Present_Timer.state != ON) {
Present_Timer.sendCommand(ON) // start the timer
}
end
rule "Present_Timer expired"
when
Item Present_Timer received command OFF
then
Present.sendCommand(OFF)
end
The issue seems related to Item-Channel links. at least that’s what the ‘predicted to become NULL’ usually indicates. Can you show your items and channels in Paper UI (a screenshot)?
@hariskar: In the example above the binding configuration is the network.cfg
You can copy the example and add one of your phones to see how it works. The only thing in items you may want to change is the expire=20m (need to install expire binding via PaperUI) to something that suits you. I use this prevent turning something OFF when I go out of wifi range for a short (20min) time e.g. walk over to neighbors house.
You can also tweak the settings retry, timeout, refreshInterval inside the Thing file if needed. The setting I have work well with iPhone and Android in my home.