Thanks greginkansas, shown below is what I get in debug. Could you share your items and Rules Code to try out the basics.
Thanks in advance.
Node 6 D LightV3
Node6 Software Version V3Node 6 D LightV3
Transmitting at 433 Mhz...
org 280
message 99 sent...
message 0 sent...
message 1 sent...
message 2 sent...
message 4 sent...
message 16 sent...
message 48 sent...
message 49 sent...
message 50 sent...
Light intensity B trannmit 75
message 52 sent...
Light intensity After 75
org 310
org 309
org 308
Sure
Items, they are kind of a mess but work.
Group Node6 ""
Number node6RefreshTime "Dining Room Refresh Time [Refresh Time %d]" (RefreshTime,Node6) { mqtt="<[mosquitto:home/rfm_gw/nb/node06/dev01:state:default::]" }
Number node6RSSI "Dining Room RSSI [RSSI %d]" (RSSI,Node6) { mqtt="<[mosquitto:home/rfm_gw/nb/node06/dev02:state:default::]" }
Number node6voltage "Dining Room voltage [Voltage %.2f]" (Node6) { mqtt="<[mosquitto:home/rfm_gw/nb/node06/dev04:state:default::]" }
Number node6temperature "Dining Room Temp [°F %.2f]" (temperature,Node6,Dining_Room_Combo_TH) { mqtt="<[mosquitto:home/rfm_gw/nb/node06/dev48:state:default]" }
Number node6humidity "Dining Room humidity [°H %.1f]" (Node6,Dining_Room_Combo_TH,RH) { mqtt="<[mosquitto:home/rfm_gw/nb/node06/dev49:state:default::]" }
Number node6MQ2 "Dining Room MQ2 [ MQ2 %d]" (Node6,fire) { mqtt="<[mosquitto:home/rfm_gw/nb/node06/dev50:state:default::]" }
Number node6UPtime "Dining Room UP Time [UP time %d]" (UpTime,Node6) { mqtt="<[mosquitto:home/rfm_gw/nb/node06/dev00:state:default::]" }
Number node6radiotemperature "Dining Room Radio Temp [°F %.2f]" (Node6) { mqtt="<[mosquitto:home/rfm_gw/nb/node06/dev51:state:default]" }
Number node6Light_intensity "Dining Room Light [Light %d]" (Light_Levels,Node6) { mqtt="<[mosquitto:home/rfm_gw/nb/node06/dev52:state:default]" }
Switch openhab_control_light "Dining Room book light Switch " (LEDStatus) { mqtt="<[mosquitto:home/rfm_gw/nb/node06/dev16:state:default::]", mqtt=">[mosquitto:home/rfm_gw/sb/node06/dev16:command:ON:ON],>[mosquitto:home/rfm_gw/sb/node06/dev16:command:OFF:OFF]" }
Number Dining_Room_light_level "Dining Room book light Level [ %d]" (LEDStatus) { mqtt="<[mosquitto:home/rfm_gw/nb/node06/dev33:state:*:default]" , mqtt=">[mosquitto:home/rfm_gw/sb/node06/dev33:command:*:default" }
Switch Proxy_openhab_control_light (Node6)
Switch node6_is_it_on (network)
DateTime node6updatetime "Node 6 Changed at [%1$tA, %1$tI:%1$tM:%1$tS]"
Rules some do stuff on light level
rule "Front porch light on Dining Room Light level proxy"
when
Item node6Light_intensity received update
then if (node6Light_intensity.state >= 245) { // low light level
postUpdate(its_morning_porch_light, ON)
}
else { postUpdate(its_morning_porch_light, OFF)
}
end
rule "Front porch light on Dining Room Light level decide"
when
Item its_morning_porch_light changed
then if (its_morning_porch_light.state == ON) {
sendCommand(porch_light, 2)
logInfo("Porch light","porch light on")
}
if (its_morning_porch_light.state == OFF) {
sendCommand(porch_light, OFF)
logInfo("Porch light","porch light off")
}
end
rule "timer book light light set proxy at 11-3 pm - am"
when
Time cron "5 0/55 * * * ?" // on 55 minutes
then if (now.getHourOfDay() >= 22) {
postUpdate(Proxy_openhab_control_light, ON) }
else if ( now.getHourOfDay() <= 2) {
postUpdate(Proxy_openhab_control_light, ON) }
else { postUpdate(Proxy_openhab_control_light, OFF) }
end
rule "Turn book light light off "
when
Item Proxy_openhab_control_light changed from ON to OFF
then
sendCommand (openhab_control_light, OFF)
logInfo("openhab_control_light", "book case light, ON") // log light test
end
rule "Turn book light light on "
when
Item Proxy_openhab_control_light changed from OFF to ON
then
sendCommand (openhab_control_light, ON)
logInfo("openhab_control_light", "book case light, OFF") // log light test
end
rule "kicthen light on Dining Room Light level"
when
Item node6Light_intensity received update
then if (node6Light_intensity.state >= 78) { // low light level
postUpdate(its_morning_sink_light, ON)
}
else { postUpdate(its_morning_sink_light, OFF)
}
end
rule "kitchen light > 10 < 2 on time light off"
when
Time cron "1 0/1 * * * ?" // on - minutes
then if (now.getHourOfDay() >= 22) {
postUpdate(autolightcontrol, OFF) }
else if ( now.getHourOfDay() <= 3) {
postUpdate(autolightcontrol, OFF) }
else
{ postUpdate(autolightcontrol, ON) }
end
rule "kitchen light off 2"
when
Item its_morning_sink_light changed from ON to OFF
then
postUpdate(InsteonKitchenLight, OFF)
sendCommand(InsteonKitchenLight, OFF)
logInfo("kitchen light", "its_morning_sink_light, OFF") // log light test
end
rule "kitchen light on 2"
when
Item its_morning_sink_light changed from OFF to ON
then
postUpdate(InsteonKitchenLight, ON)
sendCommand(InsteonKitchenLight, ON)
logInfo("kitchen light", "its_morning_sink_light, ON") // log light test
end
rule "kitchen light off "
when
Item autolightcontrol changed from ON to OFF
then
postUpdate(InsteonKitchenLight, OFF)
sendCommand(InsteonKitchenLight, OFF)
logInfo("kitchen light", "autolightcontrol, OFF") // log light test
end
rule "kitchen light on "
when
Item autolightcontrol changed from OFF to ON
then
postUpdate(InsteonKitchenLight, ON)
sendCommand(InsteonKitchenLight, ON)
logInfo("kitchen light", "autolightcontrol, ON") // log light test
end
rule "node 6 Changed"
when
Item node6UPtime changed
then
postUpdate(node6updatetime, new DateTimeType())
end
rule "is node6 transmiting in the last 2 Minutes"
when
Item node2UPtime changed
then if (node6UPtime.changedSince(now.minusMinutes(5))) { //.minusSeconds(30)
postUpdate (node6_is_it_on,"ON")
}
else {
postUpdate (node6_is_it_on,"OFF")
}
end