My fireplace, nerd style

Amazon Alexa skill communicates with Home Assistant. Home Assistant asks Alexa to tell Google Home to load a fireplace video on the TV. Home Assistant turns on red LEDs behind TV by communicating with Girder and USB-UIRT. Home Assistant tells Squeezeplayer to load my Christmas playlist from Spotify, randomize it, and play it on the Google Home. Easy peasy.

4 Likes

Use an old tube type tv and you can get some warmth from it too. :slight_smile:

Fireplace TV is such a cozy thing!

I took a short-cut with ‘kodi-cli’ https://github.com/nawar/kodi-cli

and used it for a switch this way, plus an ISS view:

From my switches.yaml

- platform: command_line
  switches:
    fireplace:
      command_on: /path/to/kodi-cli/kodi-cli -s && /path/to/kodi-cli/kodi-cli -y https://www.youtube.com/watch?v=RDfjXj5EGqI
      command_off: /path/to/kodi-cli/kodi-cli -s

- platform: command_line
  switches:
    orbit:
      command_on: /path/to/kodi-cli/kodi-cli -s && /path/to/kodi-cli/kodi-cli -y https://www.youtube.com/watch?v=qzMQza8xZCc
      command_off: /path/to/kodi-cli/kodi-cli -s

and in switches.yaml again (there’s no doubt a more elegant way of doing this, but it’s what worked first for me):

- platform: template
  switches:
    logfire:
      friendly_name: 'Log Fire'
      value_template: '{{ is_state_attr("media_player.kodi", "media_title", ("✰ 8 HOURS ✰ Best Fireplace HD 1080p video ✰ Relaxing fireplace sound ✰ Full HD") ) }}'
      turn_on:
        service: switch.toggle
        entity_id: switch.fireplace
      turn_off:
        service: switch.toggle
        entity_id: switch.fireplace


- platform: template
  switches:
    iss_view:
      friendly_name: 'Space Station'
      value_template: '{{ is_state_attr("media_player.kodi", "media_title", ("Nasa | Earth From Space LIVE Feed - Incredible NASA ISS live stream of Earth as seen from space") ) }}'
      turn_on:
        service: switch.toggle
        entity_id: switch.orbit
      turn_off:
        service: switch.toggle
        entity_id: switch.orbit

The customize.yaml bits:

  switch.fireplace:
    friendly_name: Fireplace TV
    icon: mdi:radiator

  switch.orbit:
    friendly_name: ISS View
    icon: mdi:satellite-variant

And with that a Happy Yule to All :smile:

1 Like

Hello thats nice. I am trying to do the same with google home but i dont know how to send a command to my chromecast to play an specific youtube video. Its that possible?

I’m not sure how you’d do that. Maybe by being specific with the name of the video? Or creating a playlist.

I tweeted your video on the Home Assistant twitter :slight_smile: https://twitter.com/home_assistant/status/812560049004548096

2 Likes

very nice. i dont have it on tv (only 26nd dec.) but our Christmas is automated too.

in the morning my wife comes in the kitchen and the lights from the electric fireplace go on.
she goes into the livingroom and all christmasdecoration goes on.
also the electric fireplace starts burning.
temperature is automaticly set a little higher.
homeassistant tells her goodmorning and asks if she had a good night.
then it tell her the temperature from the livingroom and outside.
then the radio starts playing.

2 Likes