Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Buadhai

macrumors 65816
Original poster
Jan 15, 2018
1,121
436
Korat, Thailand
I'm using the Homebridge HTTP accessory to control a Kankun "smart plug". It works fine except that after a power outage, the plug now defaults to being ON. (The plug natively defaults to OFF.) The plug powers a water pump which should only be ON when needed. It is less than ideal to have it default to ON; especially if we happen to be away from home during a power outage.
  • Is there some way that I can stop Homebridge from turning the plug ON after a power outage?
  • What does the "sendimmediately" parameter do in the config.json file? I've never seen it explained or used.
Here's a fragment of the Homebridge log file showing (I think) it turning the plug on after power was restored. Or, maybe, it shows HomeKit sending the power ON command to Homebridge. Not sure….

[2018-1-15 17:45:47] Homebridge is running on port 51826.
[2018-1-15 17:45:48] [Water Pump] Switch received power http://192.168.0.55/cgi-bin/relaynew.cgi?state state is currently 0
[2018-1-15 17:45:48] [Water Pump] Setting power state to off
[2018-1-15 17:45:48] [Water Pump] HTTP set power function succeeded!
[2018-1-15 17:46:45] [Water Pump] Switch received power http://192.168.0.55/cgi-bin/relaynew.cgi?state state is currently 1
[2018-1-15 17:46:45] [Water Pump] Setting power state to on
[2018-1-15 17:46:45] [Water Pump] HTTP set power function succeeded!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.