daily pastebin goal
75%
SHARE
TWEET

Untitled

a guest Jun 14th, 2018 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. light:
  2. - platform: mqtt
  3.   name: "Woonkamer RGB lamp"
  4.   entity_id: Woonkamer
  5.   command_topic: "cmnd/Woonkamer/Lamp/POWER"
  6.   state_topic: "stat/Woonkamer/Lamp/POWER"
  7.   payload_on: "ON"
  8.   payload_off: "OFF"
  9.   brightness_command_topic: "cmnd/Woonkamer/Lamp/DIMMER"
  10.   brightness_scale: 100
  11.   brightness_state_topic: "stat/Woonkamer/Lamp/RESULT"
  12.   brightness_value_template: "{% if value_json.Dimmer is defined %}{{ value_json.Dimmer }}{% else %}{{ states.light.woonkamer_rgb_lamp.attributes.brightness / 255 * 100 }}{% endif %}"
  13.   rgb_command_topic: "cmnd/Woonkamer/Lamp/COLOR"
  14.   rgb_command_template: "{{ '%02X%02X%02X0000' | format(red, green, blue) }}"
  15.   rgb_state_topic: "stat/Woonkamer/Lamp/COLOR"
  16.   rgb_value_template: "{% if value_json.Color is defined %}{{ value_json.Color[0:2]|int(base=16) }},{{ value_json.Color[2:4]|int(base=16) }},{{ value_json.Color[4:6]|int(base=16) }}{% else %}{{ states.light.woonkamer_rgb_lamp.attributes.rgb_color|join(',') }}{% endif %}"
  17.   color_temp_command_topic: "cmnd/Woonkamer/Lamp/CT"
  18.   color_temp_state_topic: "stat/Woonkamer/Lamp/COLOR"
  19.   color_temp_value_template: "{% if value_json.CT is defined %}{{ value_json.CT }}{% else %}{{ states.light.light.woonkamer_rgb_lamp.attributes.color_temp }}{% endif %}"
  20.   effect_command_topic: "cmnd/Woonkamer/Lamp/SCHEME"
  21.   effect_state_topic: "stat/Woonkamer/Lamp/SCHEME"
  22.   effect_value_template: "{% if value_json.SCHEME is defined %}{{ value_json.SCHEME }}{% else %}{{ states.light.light.woonkamer_rgb_lamp.attributes.effect }}{% endif %}"
  23.   effect_list:
  24.  - 0
  25.   - 1
  26.   - 2
  27.   - 3
  28.   - 4
  29.   availability_topic: "tele/Woonkamer/Lamp/LWT"
  30.   payload_available: "Online"
  31.   payload_not_available: "Offline"
  32.  
  33. - platform: mqtt
  34.   name: "Keuken RGB lamp"
  35.   command_topic: "cmnd/Keuken/Lamp/POWER"
  36.   state_topic: "stat/Keuken/Lamp/POWER"
  37.   entity_id: Keuken
  38.   payload_on: "ON"
  39.   payload_off: "OFF"
  40.   brightness_command_topic: "cmnd/Keuken/Lamp/DIMMER"
  41.   brightness_scale: 100
  42.   brightness_state_topic: "stat/Keuken/Lamp/RESULT"
  43.   brightness_value_template: "{% if value_json.Dimmer is defined %}{{ value_json.Dimmer }}{% else %}{{ states.light.keuken_rgb_lamp.attributes.brightness / 255 * 100 }}{% endif %}"
  44.   rgb_command_topic: "cmnd/Keuken/Lamp/COLOR"
  45.   rgb_command_template: "{{ '%02X%02X%02X0000' | format(red, green, blue) }}"
  46.   rgb_state_topic: "stat/Keuken/Lamp/RESULT"
  47.   rgb_value_template: "{% if value_json.Color is defined %}{{ value_json.Color[0:2]|int(base=16) }},{{ value_json.Color[2:4]|int(base=16) }},{{ value_json.Color[4:6]|int(base=16) }}{% else %}{{ states.light.keuken_rgb_lamp.attributes.rgb_color|join(',') }}{% endif %}"
  48.   color_temp_command_topic: "cmnd/Keuken/Lamp/CT"
  49.   color_temp_state_topic: "stat/Keuken/Lamp/RESULT"
  50.   color_temp_value_template: "{% if value_json.CT is defined %}{{ value_json.CT }}{% else %}{{ states.light.keuken_rgb_lamp.attributes.color_temp }}{% endif %}"
  51.   effect_command_topic: "cmnd/Keuken/Lamp/SCHEME"
  52.   effect_state_topic: "stat/Keuken/Lamp/RESULT"
  53.   effect_value_template: "{% if value_json.Scheme is defined %}{{ value_json.Scheme }}{% else %}{{ states.light.keuken_rgb_lamp.attributes.effect }}{% endif %}"
  54.   effect_list:
  55.  - 0
  56.   - 1
  57.   - 2
  58.   - 3
  59.   - 4
  60.   availability_topic: "tele/Keuken/Lamp/LWT"
  61.   payload_available: "Online"
  62.   payload_not_available: "Offline"
  63.  
  64.  
  65. - platform: mqtt
  66.   name: "Keuken RGB Snoer"
  67.   entity_id: Keuken
  68.   state_topic: "stat/Keuken/RgbSnoer/POWER"
  69.   command_topic: "cmnd/Keuken/RgbSnoer/POWER"
  70.  
  71.   brightness_state_topic: "stat/Keuken/RgbSnoer/Dimmer"
  72.   brightness_command_topic: "cmnd/Keuken/RgbSnoer/Dimmer"
  73.   brightness_value_template: "{{ value_json.Dimmer }}"
  74.   brightness_scale: 100
  75.  
  76.   rgb_command_template: "{{ '#%02x%02x%02x%02x%02x' | format(blue, green, red, 00, 00)}}"
  77.   rgb_command_topic: "cmnd/Keuken/RgbSnoer/Color2"
  78.   rgb_state_topic: "stat/Keuken/RgbSnoer/Color2"
  79.   rgb_command_mode: hex
  80.   rgb_value_template: "{% if value_json.Color2 is defined %}{{ value_json.Color2[0:2]|int(base=16) }},{{ value_json.Color2[2:4]|int(base=16) }},{{ value_json.Color2[4:6]|int(base=16) }}{% else %}{{ states.light.Woonkamer_rgb_snoer.attributes.COLOR2|join(',') }}{% endif %}"
  81.  
  82.  
  83.   color_temp_command_topic: "cmnd/Keuken/RgbSnoer/CT"
  84.  
  85.   effect_command_topic: "cmnd/Keuken/RgbSnoer/SCHEME"
  86.   effect_state_topic: "stat/KKeuken/RgbSnoer/RESULT"
  87.   effect_value_template: "{% if value_json.Scheme is defined %}{{ value_json.Scheme }}{% else %}{{ states.light.woonkamer_rgb_snoer.attributes.effect }}{% endif %}"
  88.   effect_list:
  89.  - 0
  90.   - 1
  91.   - 2
  92.   - 3
  93.   - 4
  94.   qos: 0
  95.   payload_on: "ON"
  96.   payload_off: "OFF"
  97.   optimistic: false
  98.  
  99. - platform: mqtt
  100.   name: "Woonkamer RGB Snoer"
  101.   entity_id: Woonkamer
  102.   state_topic: "stat/Woonkamer/RgbSnoer/POWER"
  103.   command_topic: "cmnd/Woonkamer/RgbSnoer/POWER"
  104.  
  105.   brightness_state_topic: "stat/Woonkamer/RgbSnoer/Dimmer"
  106.   brightness_command_topic: "cmnd/Woonkamer/RgbSnoer/Dimmer"
  107.   brightness_value_template: "{{ value_json.Dimmer }}"
  108.   brightness_scale: 100
  109.  
  110.   rgb_command_template: "{{ '#%02x%02x%02x%02x%02x' | format(green, red, blue, 00, 00)}}"
  111.   rgb_command_topic: "cmnd/Woonkamer/RgbSnoer/Color2"
  112.   rgb_state_topic: "stat/Woonkamer/RgbSnoer/Color2"
  113.   rgb_command_mode: hex
  114.   rgb_value_template: "{% if value_json.Color2 is defined %}{{ value_json.Color2[0:2]|int(base=16) }},{{ value_json.Color2[2:4]|int(base=16) }},{{ value_json.Color2[4:6]|int(base=16) }}{% else %}{{ states.light.Woonkamer_rgb_snoer.attributes.COLOR2|join(',') }}{% endif %}"
  115.  
  116.  
  117.   color_temp_command_topic: "cmnd/Woonkamer/RgbSnoer/CT"
  118.  
  119.   effect_command_topic: "cmnd/Woonkamer/RgbSnoer/SCHEME"
  120.   effect_state_topic: "stat/KWoonkamer/RgbSnoer/RESULT"
  121.   effect_value_template: "{% if value_json.Scheme is defined %}{{ value_json.Scheme }}{% else %}{{ states.light.woonkamer_rgb_snoer.attributes.effect }}{% endif %}"
  122.   effect_list:
  123.  - 0
  124.   - 1
  125.   - 2
  126.   - 3
  127.   - 4
  128.   qos: 0
  129.   payload_on: "ON"
  130.   payload_off: "OFF"
  131.   optimistic: false
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top