Back Alive!

This commit is contained in:
Mahasri Kalavala
2019-04-17 18:46:06 -04:00
parent 929e0b336e
commit 2a0dd39795
255 changed files with 137143 additions and 0 deletions

9
python_scripts/rgbcolor.py Executable file
View File

@@ -0,0 +1,9 @@
"""
{"entity_id":"light.hue_color_lamp_2", "rgb_color": [254, 0, 0] }
"""
entity_id = data.get('entity_id')
rgb_color = data.get('rgb_color', [255, 255, 255])
if entity_id is not None:
service_data = {"entity_id": entity_id, "rgb_color": rgb_color, "brightness": 255 }
hass.services.call("light", "turn_on", service_data, False)