Updated hue ip
This commit is contained in:
parent
29e779b023
commit
ecf047ca0c
|
@ -49,7 +49,7 @@ automation.device_manager:add(DebugBridge.new({
|
||||||
client = mqtt_client,
|
client = mqtt_client,
|
||||||
}))
|
}))
|
||||||
|
|
||||||
local hue_ip = "10.0.0.146"
|
local hue_ip = "10.0.0.136"
|
||||||
local hue_token = automation.util.get_env("HUE_TOKEN")
|
local hue_token = automation.util.get_env("HUE_TOKEN")
|
||||||
|
|
||||||
automation.device_manager:add(HueBridge.new({
|
automation.device_manager:add(HueBridge.new({
|
||||||
|
@ -187,7 +187,8 @@ automation.device_manager:add(ContactSensor.new({
|
||||||
|
|
||||||
local function trash_action(device)
|
local function trash_action(device)
|
||||||
local previous = device:is_on()
|
local previous = device:is_on()
|
||||||
local function f(closed)
|
local function f(_, closed)
|
||||||
|
print(_)
|
||||||
if closed then
|
if closed then
|
||||||
if not previous then
|
if not previous then
|
||||||
device:set_on(false)
|
device:set_on(false)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user