frosso / Home-Assistant-DreamScreen-Service

Home Assistant Service for sending commands to a Wifi enabled DreamScreen

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Home-Assistant-DreamScreen-Service

This is a custom component for Home-Assistant which will add the ability to control a Wifi enabled DreamScreen (HD & 4k). Currently the support is new/experimental.

Installation/Usage

Git Clone

You can clone this repo into your custom_components folder in your Home Assistant config location with the name dreamscreen.

git clone git@github.com:GregoryDosh/Home-Assistant-DreamScreen-Service.git dreamscreen

Git Submodule

You can also add it as a submodule which will allow you to pull updates in the future using git submodule foreach git pull.

git submodule add -b master git@github.com:GregoryDosh/Home-Assistant-DreamScreen-Service.git dreamscreen

Example Configuration

This exposes the input sources as individual bulbs for the emulated_hue bridge so that you might control the HDMI inputs via Harmony or some other apps.

dreamscreen:

homeassistant:
  customize:
    script.dreamscreen_input_source_1:
      emulated_hue_hidden: false
      hidden: true
    script.dreamscreen_input_source_2:
      emulated_hue_hidden: false
      hidden: true
    script.dreamscreen_input_source_3:
      emulated_hue_hidden: false
      hidden: true

script:
  dreamscreen_input_source_1:
    alias: "DreamScreen - Source 1"
    sequence:
      - service: dreamscreen.set_hdmi_source
        data:
          entity_id: dreamscreen.living_room
          source: 0
  dreamscreen_input_source_2:
    alias: "DreamScreen - Source 2"
    sequence:
      - service: dreamscreen.set_hdmi_source
        data:
          entity_id: dreamscreen.living_room
          source: 1
  dreamscreen_input_source_3:
    alias: "DreamScreen - Source 3"
    sequence:
      - service: dreamscreen.set_hdmi_source
        data:
          entity_id: dreamscreen.living_room
          source: 2

Services

dreamscreen.set_mode

entity_id: Name of DreamScreen device to send command to.

mode

Value Mode
0 Off
1 Video
2 Music
3 Ambient
{
    "entity_id": "dreamscreen.living_room",
    "mode": 1
}

dreamscreen.set_hdmi_source

entity_id: Name of DreamScreen device to send command to.

source

Value HDMI Source
0 HDMI Source 1
1 HDMI Source 2
2 HDMI Source 3
{
    "entity_id": "dreamscreen.living_room",
    "source": 0
}

dreamscreen.set_brightness

entity_id: Name of DreamScreen device to send command to.

brightness: Integer values between 0 and 100

{
    "entity_id": "dreamscreen.living_room",
    "brightness": 75
}

dreamscreen.set_ambiance_color

entity_id: Name of DreamScreen device to send command to.

color: Hex valued color

{
    "entity_id": "dreamscreen.living_room",
    "color": "#40e0d0",
}

dreamscreen.set_ambiance_scene

entity_id: Name of DreamScreen device to send command to.

scene

Value Ambiance Scene
0 Random Colors
1 Fireside
2 Twinkle
3 Ocean
4 Pride
5 July 4th
6 Holiday
7 Pop
8 Enchanted Forrest
{
    "entity_id": "dreamscreen.living_room",
    "scene": 4
}

About

Home Assistant Service for sending commands to a Wifi enabled DreamScreen

License:MIT License


Languages

Language:Python 100.0%