Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: Espixelstick and Home Assistant

  1. #11
    Join Date
    Nov 2016
    Location
    Washington State
    Posts
    103
    Post Thanks / Like

    Default Re: Espixelstick and Home Assistant

    I have a few strands of lights around the yard that I want to automatically after dark. Eventually I would like to send colors and patterns based on weather lighting and other variables. I would be very interested in what others come up with.

  2. #12
    Join Date
    Oct 2015
    Posts
    12
    Post Thanks / Like

    Default Re: Espixelstick and Home Assistant

    Quote Originally Posted by tecnageek View Post
    I have a few strands of lights around the yard that I want to automatically after dark. Eventually I would like to send colors and patterns based on weather lighting and other variables. I would be very interested in what others come up with.
    In terms of just having automatons for lights to come on and off with home assistant it's fairly straight forward. As long as your hardware is compatible. Check out Dr zZs videos and bruh automation to give you an idea of what you can do with pixel nodes and led strips.

  3. #13
    Join Date
    Aug 2012
    Location
    Charleston, SC
    Posts
    1,055
    Post Thanks / Like

    Default Re: Espixelstick and Home Assistant

    Just a heads up, ESPixelStick MQTT support now uses mqtt_json. Config example has been updated in the README.
    -shelby

  4. #14
    Join Date
    Aug 2008
    Location
    Columbus, OH
    Posts
    4,055
    Post Thanks / Like

    Default Re: Espixelstick and Home Assistant

    nice!
    Quote Originally Posted by sporadic View Post
    Just a heads up, ESPixelStick MQTT support now uses mqtt_json. Config example has been updated in the README.
    -shelby

  5. #15
    Join Date
    Nov 2016
    Location
    Washington State
    Posts
    103
    Post Thanks / Like

    Default Re: Espixelstick and Home Assistant

    Upgrading to latest release and testing. https://github.com/forkineye/ESPixelStick/releases
    I did get an automation up and running, but with new release I hope to utilize effects.

  6. #16
    Join Date
    Nov 2016
    Location
    Washington State
    Posts
    103
    Post Thanks / Like

    Default Re: Espixelstick and Home Assistant

    Looking pretty good. Lights are coming on after dark, and I will be working on adding different variables for colors and effects.


    Code:
    #ESPixelstick yaml
    
    mqtt:  
      broker: !secret mqtt_broker
      port: !secret mqtt_port
      client_id: !secret mqtt_client_id 
      username: !secret mqtt_username  
      password: !secret mqtt_password
      
    light:  
    #espixelstick subnet 110
      - platform: mqtt_json
        name: "ESPixel110patio"
        state_topic: "patio/esps"
        command_topic: "patio/esps/set"
        brightness: true
        rgb: true
        effect: true
        effect_list:
          - Solid
          - Blink
          - Flash
          - Rainbow
          - Chase
        
    #espixelstick subnet 109
      - platform: mqtt_json
        name: "ESPixel109Front"
        state_topic: "frontwalk/esps"
        command_topic: "frontwalk/esps/set"
        brightness: true
        rgb: true
        effect: true
        effect_list:
          - Solid
          - Blink
          - Flash
          - Rainbow
          - Chase
    	  
    sensor:
    #ESP_Node Temp, Light and Humidity sensors
      - platform: mqtt  
        state_topic: "bruh/sensornode1"  
        name: "SN1 Humidity"  
        unit_of_measurement: "%"  
        value_template: '{{ value_json.humidity | round(1) }}'  
      
      - platform: mqtt  
        state_topic: "bruh/sensornode1"  
        name: "SN1 LDR"
        ##This sensor is not calibrated to actual LUX. Rather, this a map of the input voltage ranging from 0 - 1023.
        unit_of_measurement: "LUX"  
        value_template: '{{ value_json.ldr }}'
        
      - platform: mqtt  
        state_topic: "bruh/sensornode1"  
        name: "SN1 Temperature"  
        unit_of_measurement: "°F"  
        value_template: '{{ value_json.temperature | round(1) }}'
        
      - platform: mqtt
        state_topic: "bruh/sensornode1"
        name: "SN1 Real Feel"
        unit_of_measurement: "°F"
        value_template: '{{ value_json.heatIndex | round(1) }}'	  
    	
    	# Binary Sensors
    binary_sensor:
      - platform: threshold
        name: isdark
        entity_id: sensor.sn1_ldr
        lower: 100
        hidden: true
    	
    groups:
      Yardlights_Card:
        name: Yard lights
        entities:
          - light.ESPixel109front
          - light.espixel110patio
    	  
    ##########################################################
    #turn lights in yard off and on via isdark               #
    ##########################################################
    - alias: Yard Lights On                                  #
      trigger:                                               #
        - platform: state                                    #
          entity_id: binary_sensor.isdark                    #
          to: 'on'                                           #
      action:                                                #
        - service: homeassistant.turn_on                     #
          data:                                              #
           entity_id: group.yardlights_card                  #
           brightness: 255                                   #
           rgb_color: [255,204,255]                          #
           transition: 1                                     #
                                                             #
    - alias: Yard Lights Off                                 #
      trigger:                                               #
        - platform: state                                    #
          entity_id: binary_sensor.isdark                    #
          to: 'off'                                          #
      action:                                                #
        - service: homeassistant.turn_off                    #
          entity_id: group.yardlights_card                   #
    ##########################################################

  7. #17
    Join Date
    Aug 2012
    Location
    Charleston, SC
    Posts
    1,055
    Post Thanks / Like

    Default Re: Espixelstick and Home Assistant

    Quote Originally Posted by tecnageek View Post
    Looking pretty good. Lights are coming on after dark, and I will be working on adding different variables for colors and effects.
    We're just starting to revamp the way effects are handled so that they can be customized via the UI. There's discussion on it in this issue thread - https://github.com/forkineye/ESPixelStick/issues/117.
    thanks,
    -shelby

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •