local DEVICE_NO1 = 152 -- Максимальная температура
local DEVICE_NO2 = 151 -- Минимальная температура
local DEVICE_NO3 = 150 -- Температура Сейчас
local DEVICE_NO4 = 153 -- Влажность
local currentLevel1 = luup.variable_get("urn:upnp-org:serviceId:TemperatureSensor1","CurrentTemperature", DEVICE_NO1)
local currentLevel2 = luup.variable_get("urn:upnp-org:serviceId:TemperatureSensor1","CurrentTemperature", DEVICE_NO2)
local currentLevel3 = luup.variable_get("urn:upnp-org:serviceId:TemperatureSensor1","CurrentTemperature", DEVICE_NO3)
local currentLevel4 = luup.variable_get("urn:micasaverde-com:serviceId:HumiditySensor1","CurrentLevel", DEVICE_NO4)
local msg_body = "Максимальная температура " .. currentLevel1 .. ", Минимальная температура " .. currentLevel2 .. ", Температура сейчас " .. currentLevel3 .. ", Влажность " .. currentLevel4
local badge = '+1'
local sound = 'default'
local t_push = { message = msg_body, badge = "+1", sound = "" }
luup.call_action("urn:automatorapp-com:serviceId:Push1", "SendPushNotification", t_push, 115)