• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
action: dim
#1
@Niek :
I modified the Rule as you wrote now.
The rule is executing normal every 2 minutes now but the whole hour.
It seems that dim UP and DOWN do not check that the maximum/minimum-dimlevel is reached:
Code:
[Feb 18 06:00:00:700019] pilight-daemon: INFO: executed rule: sunrise_spotli
[Feb 18 06:00:15:718117] pilight-daemon: INFO: executed rule: sunrise_spotre
[Feb 18 06:02:00:880194] pilight-daemon: INFO: executed rule: sunrise_spotli
[Feb 18 06:02:15:898017] pilight-daemon: INFO: executed rule: sunrise_spotre
[ Feb 18 06:04:00:21287] pilight-daemon: INFO: executed rule: sunrise_spotli
[ Feb 18 06:04:15:39432] pilight-daemon: INFO: executed rule: sunrise_spotre
[Feb 18 06:06:00:200367] pilight-daemon: INFO: executed rule: sunrise_spotli
[Feb 18 06:06:15:218398] pilight-daemon: INFO: executed rule: sunrise_spotre
[Feb 18 06:08:00:379096] pilight-daemon: INFO: executed rule: sunrise_spotli
[Feb 18 06:08:15:397094] pilight-daemon: INFO: executed rule: sunrise_spotre
[Feb 18 06:10:00:540741] pilight-daemon: INFO: executed rule: sunrise_spotli
[Feb 18 06:10:15:558990] pilight-daemon: INFO: executed rule: sunrise_spotre
[Feb 18 06:12:00:701667] pilight-daemon: INFO: executed rule: sunrise_spotli
[Feb 18 06:12:15:720067] pilight-daemon: INFO: executed rule: sunrise_spotre
[Feb 18 06:12:16:695523] pilight-daemon: INFO: executed rule: neon_on_after_sunrise
[Feb 18 06:14:00:863041] pilight-daemon: INFO: executed rule: sunrise_spotli
[Feb 18 06:14:15:917087] pilight-daemon: INFO: executed rule: sunrise_spotre
[ Feb 18 06:16:00:58938] pilight-daemon: INFO: executed rule: sunrise_spotli
[ Feb 18 06:16:15:77016] pilight-daemon: INFO: executed rule: sunrise_spotre
[Feb 18 06:18:00:238341] pilight-daemon: INFO: executed rule: sunrise_spotli
[Feb 18 06:18:15:256552] pilight-daemon: INFO: executed rule: sunrise_spotre
[Feb 18 06:20:00:419339] pilight-daemon: INFO: executed rule: sunrise_spotli
[Feb 18 06:20:15:455348] pilight-daemon: INFO: executed rule: sunrise_spotre
[Feb 18 06:22:00:580070] pilight-daemon: INFO: executed rule: sunrise_spotli
[Feb 18 06:22:15:598188] pilight-daemon: INFO: executed rule: sunrise_spotre
[Feb 18 06:24:00:760110] pilight-daemon: INFO: executed rule: sunrise_spotli
[Feb 18 06:24:15:778252] pilight-daemon: INFO: executed rule: sunrise_spotre
[Feb 18 06:26:00:903746] pilight-daemon: INFO: executed rule: sunrise_spotli
[Feb 18 06:26:15:922087] pilight-daemon: INFO: executed rule: sunrise_spotre
[ Feb 18 06:28:00:64579] pilight-daemon: INFO: executed rule: sunrise_spotli
[ Feb 18 06:28:15:82959] pilight-daemon: INFO: executed rule: sunrise_spotre
[Feb 18 06:30:00:204965] pilight-daemon: INFO: executed rule: sunrise_spotli
[Feb 18 06:30:15:223245] pilight-daemon: INFO: executed rule: sunrise_spotre
[Feb 18 06:32:00:342427] pilight-daemon: INFO: executed rule: sunrise_spotli
[Feb 18 06:32:15:378111] pilight-daemon: INFO: executed rule: sunrise_spotre
[Feb 18 06:34:00:501216] pilight-daemon: INFO: executed rule: sunrise_spotli
[Feb 18 06:34:15:518529] pilight-daemon: INFO: executed rule: sunrise_spotre
[Feb 18 06:36:00:636906] pilight-daemon: INFO: executed rule: sunrise_spotli
[Feb 18 06:36:15:672585] pilight-daemon: INFO: executed rule: sunrise_spotre
[Feb 18 06:38:00:814895] pilight-daemon: INFO: executed rule: sunrise_spotli
[Feb 18 06:38:15:833271] pilight-daemon: INFO: executed rule: sunrise_spotre
[Feb 18 06:40:00:958394] pilight-daemon: INFO: executed rule: sunrise_spotli
[Feb 18 06:40:15:976766] pilight-daemon: INFO: executed rule: sunrise_spotre
[Feb 18 06:42:00:173175] pilight-daemon: INFO: executed rule: sunrise_spotli
[Feb 18 06:42:15:191791] pilight-daemon: INFO: executed rule: sunrise_spotre
[Feb 18 06:44:00:334623] pilight-daemon: INFO: executed rule: sunrise_spotli
[Feb 18 06:44:15:353108] pilight-daemon: INFO: executed rule: sunrise_spotre
[Feb 18 06:46:00:477910] pilight-daemon: INFO: executed rule: sunrise_spotli
[Feb 18 06:46:15:496075] pilight-daemon: INFO: executed rule: sunrise_spotre
[Feb 18 06:48:00:657319] pilight-daemon: INFO: executed rule: sunrise_spotli
[Feb 18 06:48:15:675653] pilight-daemon: INFO: executed rule: sunrise_spotre
[Feb 18 06:50:00:818915] pilight-daemon: INFO: executed rule: sunrise_spotli
[Feb 18 06:50:15:837139] pilight-daemon: INFO: executed rule: sunrise_spotre
[Feb 18 06:52:00:962391] pilight-daemon: INFO: executed rule: sunrise_spotli
[Feb 18 06:52:15:980715] pilight-daemon: INFO: executed rule: sunrise_spotre
[Feb 18 06:54:00:141026] pilight-daemon: INFO: executed rule: sunrise_spotli
[Feb 18 06:54:15:159301] pilight-daemon: INFO: executed rule: sunrise_spotre
[Feb 18 06:56:00:283017] pilight-daemon: INFO: executed rule: sunrise_spotli
[Feb 18 06:56:15:301310] pilight-daemon: INFO: executed rule: sunrise_spotre
[Feb 18 06:58:00:447403] pilight-daemon: INFO: executed rule: sunrise_spotli
[Feb 18 06:58:15:465964] pilight-daemon: INFO: executed rule: sunrise_spotre
 
Reply
#2
@terrar,

Thanks for your feedback.

The rule will still be executed when the max/min dimlevel is reached, but the dimlevel will not really be incremented/decremented anymore.

I will see if a "graceful death" of the rule is possible in that situation, so that the "executed rule..." doesn't appear anymore.
 
Reply
#3
Please post anything you want to ask or tell about the dim action in this thread.
 
Reply
#4
I would just remove the maximum dimlevel check. The action stops increasing when the max is reached so the additional check is useless.
 
Reply
#5
The dimlevel check in the rule has to be removed anyway, because with it, we have the problem of multiple executions of the rule.

The current version of the dim action will indeed stop increasing/decreasing, but every time the action is called, it is still sending (with unchanged dimlevel). It is useless to send in that case. Therefor I will make a change so it will only send if the dimlevel changes.
 
Reply
#6
Yes, that should be implemented anyway Smile
 
Reply
#7
Done.
The updated version is available my pilight-actions repository: https://github.com/NiekD/pilight-actions/
 
Reply
#8
I know is is an old theme but:

It would be really nice to create rules like this for my terrarium to exactly control the temperature with dim the heatspots up or down:
Code:
IF temperaturesensorleft.temperature > temperaturecontrol.dimlevel THEN dim DEVICE heatspotleft TO (heatspotleft.dimlevel - 1)
IF temperaturesensorleft.temperature < temperaturecontrol.dimlevel THEN dim DEVICE heatspotleft TO (heatspotleft.dimlevel + 1)

Option TO does not allow to add or substract at the moment but maybe someone has mercy on me?
Terrarium:  RPi Model B Rev 2 / pilight 8.1.2 / stretch
Aquarium: RPi Model B Plus Rev 1.2 / pilight 8.0.6 / jessie
 
Reply
#9
Did you try an intermediate device?
 
Reply
#10
I can not follow you. A little hint?
Terrarium:  RPi Model B Rev 2 / pilight 8.1.2 / stretch
Aquarium: RPi Model B Plus Rev 1.2 / pilight 8.0.6 / jessie
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  _VARSTORE_ set action fourty2 1 1,205 05-19-2019, 09:07 PM
Last Post: curlymo
  skipping overridden action switch do1eh 2 858 01-19-2019, 05:25 PM
Last Post: do1eh
  http action Niek 21 5,764 08-12-2018, 11:44 AM
Last Post: rorie
  action: Pushbullet bazb 24 13,614 01-04-2018, 08:38 PM
Last Post: curlymo
  action: pushover Niek 36 20,327 12-03-2017, 11:13 AM
Last Post: Alex
  action: file Niek 14 5,035 06-23-2016, 04:02 PM
Last Post: Niek
  action: switch Niek 54 23,440 03-31-2016, 06:24 PM
Last Post: jjj
  action: program bazb 16 9,165 03-31-2016, 09:14 AM
Last Post: Niek
  action: toggle Niek 1 2,676 02-19-2016, 03:04 PM
Last Post: Joeks
  Event action sipcal to make a voip phonecall pieterd 7 5,028 05-15-2015, 05:47 PM
Last Post: koos147

Forum Jump:


Browsing: 1 Guest(s)