ESP-Home_MQTT_Toggle
|
setGlobal('mqttDimmer13.status','{"state": "TOGGLE"}');
//setGlobal('mqttDimmer13.status','{"state": "ON","brightness": 50}'); //20%
//setGlobal('mqttDimmer13.status','{"state": "ON","brightness": 150}'); //60%
//setGlobal('mqttDimmer13.status','{"state": "ON","brightness": 255}'); //100%
|
ESPHome_MQTT_100%
|
// setGlobal('mqttDimmer13.status','{"state": "TOGGLE"}');
//setGlobal('mqttDimmer13.status','{"state": "ON","brightness": 50}'); //20%
//setGlobal('mqttDimmer13.status','{"state": "ON","brightness": 150}'); //60%
setGlobal('mqttDimmer13.status','{"state": "ON","brightness": 255}'); //100%
|
ESPHome_MQTT_35%
|
// setGlobal('mqttDimmer13.status','{"state": "TOGGLE"}');
setGlobal('mqttDimmer13.status','{"state": "ON","brightness": 90}'); //20%
//setGlobal('mqttDimmer13.status','{"state": "ON","brightness": 150}'); //60%
//setGlobal('mqttDimmer13.status','{"state": "ON","brightness": 255}'); //100%
|
ESPHome_MQTT_70%
|
// setGlobal('mqttDimmer13.status','{"state": "TOGGLE"}');
//setGlobal('mqttDimmer13.status','{"state": "ON","brightness": 50}'); //20%
setGlobal('mqttDimmer13.status','{"state": "ON","brightness": 180}'); //60%
//setGlobal('mqttDimmer13.status','{"state": "ON","brightness": 255}'); //100%
|
ESPHome_MQTT_RGB
|
// setGlobal('mqttDimmer13.status','{"state": "TOGGLE"}');
setGlobal('mqttRgb02.state','{"state": "OFF","brightness": 90, "color": {"r": 255,"g": 136,"b": 0}}'); //20%
//setGlobal('mqttDimmer13.status','{"state": "ON","brightness": 150}'); //60%
//setGlobal('mqttDimmer13.status','{"state": "ON","brightness": 255}'); //100%
|
ESPHome_MQTT_RGB_OFF
|
// setGlobal('mqttDimmer13.status','{"state": "TOGGLE"}');
setGlobal('mqttRgb02.state','{"state": "OFF"}'); //20%
setGlobal('mqttRgb02.status',0);
//setGlobal('mqttDimmer13.status','{"state": "ON","brightness": 150}'); //60%
//setGlobal('mqttDimmer13.status','{"state": "ON","brightness": 255}'); //100%
|
ESPHome_MQTT_RGB_On_Green
|
// setGlobal('mqttDimmer13.status','{"state": "TOGGLE"}');
//setGlobal('mqttRgb02.state','{"state": "OFF"}'); //20%
//setGlobal('mqttDimmer13.status','{"state": "ON","brightness": 150}'); //60%
//setGlobal('mqttDimmer13.status','{"state": "ON","brightness": 255}'); //100%
setGlobal('mqttRgb02.state','{"state": "ON","brightness": 90, "color": {"r": 0,"g": 255,"b": 0}}');
setGlobal('mqttRgb02.status',1);
|
Kitchen_All_Off_Light
|
$objects=array('NoolightRelay05','NoolightRelay06');
foreach($objects as $o) {
callMethod($o.'.turnoff');
}
getURL('http://192.168.2.21/cm?cmnd=Power%20Off');
|
SurfaceLed_100
|
getURL('http://192.168.2.21/cm?cmnd=Dimmer%20100');
|
SurfaceLed_60
|
getURL('http://192.168.2.21/cm?cmnd=Dimmer%2060');
|
SurfaceLed_Toggle
|
getURL('http://192.168.2.21/cm?cmnd=Power%20Toggle');
|
Surface_Led_20
|
getURL('http://192.168.2.21/cm?cmnd=Dimmer%2020');
|