Quantcast
Channel: Configuration - Home Assistant Community
Viewing all 106430 articles
Browse latest View live

Creating blueprint number selector is saved as text?

$
0
0

I’m creating a blueprint to trigger when a brightness level matches the blueprint number selector

level:
      name: Trigger level
      description: Brightness of the light to trigger automation
      default: 0
      selector:
        number:
          min: 0.0
          max: 100.0
          mode: box
          step: 1.0

Im using this in a condition

condition:
  condition: state
  entity_id: !input "vbulb"
  attribute: brightness
  state: !input "level"

Its not working when I checked the automation

- id: '1608393746645'
  alias: Alexa
  description: ''
  use_blueprint:
    path: homeassistant/alexa_blueprint.yaml
    input:
      level: '20'
      vbulb: light.alexa_virtual

The number selector (level) is text , if i remove the quotes ’ the blueprint works. If this correct ? should a number selector be saved as text ? If so how can I convert the text to a number so my condition works

1 post - 1 participant

Read full topic


Motioneye notifications with picture

$
0
0

Hi,

I have google this question but many of the answers were quite a few years old and HA configuration has changed since then.

I have configured motioneye as per these instructions which works great, I get notified each time motion is detected but I would like the notification to contain a picture of the motion.

Can anyone help with how I can achieve this?

Regarda
James

1 post - 1 participant

Read full topic

Could not get level_template to work

$
0
0

Hello,

i have the following configuration:

livingroom_g:
      friendly_name: Livingroom
      level_template: >-
        {% if states.sensor.gekko_light is defined and states.sensor.gekko_light.attributes['item0'] is defined %}
            {{ state_attr('sensor.gekko_light','item0').split(';')[1]|int }}
        {% else %}
            {{ state_attr('light.livingroom_g','brightness') }}
        {% endif %}  
      value_template: >-
        {% if states.sensor.gekko_light is defined and states.sensor.gekko_light.attributes['item0'] is defined %}
            {% if states.sensor.gekko_light.attributes['item0']['sumstate']['value'].split(';')[0]|float == 1 %}
                on
            {% else %}
                off
            {% endif %} 
        {% else %}
            {{ states('light.livingroom_g') }}
        {% endif %}   
      turn_on: 
        - service: rest_command.rest_gekko_light
          data:
            status: 1
            item: item0
        - service: homeassistant.update_entity
          entity_id: sensor.gekko_light
      turn_off: 
        - service: rest_command.rest_gekko_light
          data:
            status: 0
            item: item0
        - service: homeassistant.update_entity
          entity_id: sensor.gekko_light

But in HomeAssistant no Brightness attribute appears. Even when i put a number to level_template e.g. 128. There is no attribute.
What am i doing wrong ?

The value_template is working fine and the value which i am splitting is something like: “0;100.00;16764280;0;”

Any suggestions ?

1 post - 1 participant

Read full topic

Issue: camera.play_stream to Google Home Hub displays camera stream rotated for 90 deg clockwise

$
0
0

Hi,

I can normaly use camera.play_stream service to show my Reolink camera with RSTP stream on my Android TV. But when is camera.play_stream to my media player Google Hub displays stream rotated for 90 deg clockwise. Google Home Hub is updated to the latest version.’

Any advice on that?
Thank you.

1 post - 1 participant

Read full topic

Randomly play spotify playlists

$
0
0

Having already configured an NFC Tag and wanting to use this to randomly play different playlists from Spotify on my favorite media player, is there anyone experienced who can create an automation blueprint?

4 posts - 3 participants

Read full topic

MQTT Payload parsing

$
0
0

I have MQTT topic tiltbridge that has a payload that looks like:

tiltbridge tiltbridge,tilt_color=Red specific_gravity=1.004,temperature=64
tiltbridge tiltbridge,tilt_color=Purple specific_gravity=1.003,temperature=64
tiltbridge tiltbridge,tilt_color=Yellow specific_gravity=0.999,temperature=64

There are 3 sensors Red, Purple, and Yellow

How do I create a sensor template that will create a new sensor for each color with the state or attribute values from specific_gravity and temperature?

1 post - 1 participant

Read full topic

Unable to add Google Assistant Skill

$
0
0

Hi,

I enabled the Cloud Integration recently and planned on adding the Skill to my Google Home/Assistant but I can’t see it when trying to find it in Google Assistant itself. When I use the link from within HA it pulls up the Page from assistant.google.com and has a Set Up button but pressing that one just directs me back to the list of services being able to added but no Hass.io Service there. Any ideas? Google Account is US but I am currently located withing Germany if that should make a difference. Language settings on all Apps and Accounts currently dumbed down to English US but that makes no difference.

1 post - 1 participant

Read full topic

Problem with Zemismart Zigbee Curtain Switch in Lovelace

$
0
0

I connected my curtain switch with zigbee2mqtt. Using the zigbee2mqtt interface works just fine, but in Lovelace it shows the wrong state for Open/Close position and the right function to trigger is greyed out. The position of the position of the curtain in percent is advertised correctly.

Tuya Smart Switch

1 post - 1 participant

Read full topic


Can't get working external_url

$
0
0

Hi all!
I’m trying to get external_url working again without success.
It worked fine until some time ago but not anymore.

I’ve a static IP on my connection and I reach it using a DNS.
Let’s Encrypt module has done correctly the certificate renew using the http challenge.
On the router I’ve forwarded 8123, 80 and 443 ports to the Raspberry PI4 local IP.
In the configuration file I’ve added this settings:

homeassistant:
  ...
  external_url: "https://***" // Tried using "https://***:8123" too
  internal_url: "https://192.168.188.20:8123"
http:
    ssl_certificate: /ssl/fullchain.pem
    ssl_key: /ssl/privkey.pem

But nothing. The browser return time out error.

Hassio 2020.12.1
Hassio OS 5.4.79-v7l

What can i try?
Thanks

1 post - 1 participant

Read full topic

MyQ - HomeBridge - MQTT - HA - so close, need one more step of help please

$
0
0

Like many, I have a MyQ integration but it seems to break frequently with API changes. I also have Homebridge running on my Synology in a Docker and found that one of the myQ plugins for that also has full MQTT support.

I have nearly everything working except for getting the current state of the doors (we have two).

In configuration.yaml, I have:

# MQTT Cover
  - platform: mqtt
    name: "My Garage"
    command_topic: "myq/(serial)/garagedoor/set"
    state_topic: "myq/(serial)/garagedoor"
    qos: 0
    retain: true
    payload_open: "open"
    payload_close: "close"
    state_open: "open"
    state_opening: "opening"
    state_closed: "closed"
    state_closing: "closing"
    payload_available: "online"
    payload_not_available: "offline"
    optimistic: false
    value_template: '{{ value.x }}'

# MQTT Cover
  - platform: mqtt
    name: "Wifes Garage"
    command_topic: "myq/(serial)/garagedoor/set"
    state_topic: "myq/(serial)/garagedoor"
    qos: 0
    retain: true
    payload_open: "open"
    payload_close: "close"
    state_open: "open"
    state_opening: "opening"
    state_closed: "closed"
    state_closing: "closing"
    payload_available: "online"
    payload_not_available: "offline"
    optimistic: false
    value_template: '{{ value.x }}'

I then have this as a Lovelace button:

type: button
tap_action:
  action: toggle
entity: cover.my_garage
icon: 'hass:garage'
show_state: true

The button is able to initiate a toggle to open/close the garage door
BUT it is not able to read the state of the door.

I tried this but got an error message (failed to call service; required key not provided). Tried payload as true, ‘true’ and “true”

type: button
tap_action:
  action: toggle
entity: cover.wifes_garage
icon: 'hass:garage'
show_state: true
hold_action:
  action: call-service
  service: mqtt.publish
  topic: myq/(serial)/garagedoor/get
  payload: 'true'

From the plugin:

Topics Published

The topics and messages that homebridge-myq publishes are:

Topic Message Published
garagedoor closed , closing , open , opening , when garage door state changes are detected.

Messages are published to MQTT when an action occurs on a device that triggers the respective event, or when an MQTT message is received for one of the topics homebridge-myq subscribes to.

Topics Subscribed

The topics that homebridge-myq subscribes to are:

Topic Message Expected
garagedoor/get true will request that the plugin publish the current state of the garage door to the garagedoor topic.
garagedoor/set One of close or open . This will send the respective command to the garage door.

I went into Home Assistant’s MQTT and clicked configure then
Publish a packet
topic
myq/(serial)/garagedoor/get
Payload (template allowed)
1 true

And this showed the state as open when listening using #

So, wondering what I am missing from the above in order to get the current state of the garage doors and, ideally, have that state be available even after restart (currently have to cycle it once to get the sensor I created first to show state)

If it helps, sensor in configuration.yaml was:

  - platform: mqtt
    name: My Garage MQTT Cover
    state_topic: "myq/(serial)/garagedoor"
    icon: mdi:cover

  - platform: mqtt
    name: Wifes Garage MQTT Cover
    state_topic: "myq/(serial)/garagedoor"
    icon: mdi:cover

THANKS!

1 post - 1 participant

Read full topic

Problem with eq3 maxcube thermostats

$
0
0

Hello community,

since some days I have a really strange behavior of my eq3 thermostats.

I have three thermostats at the living room, one in childroom and one in the bedroom.

When I change one of the living room temperatures, the temperature is also assigned to the childroom thermostat after some minutes. That’s really bad, beacuse in case of an open window heating starts!

I’m sure, that Home-Assistant is the cause because the issue also occurs if appdaemon/schedy is disabled (running in another docker container).

I already did a factory reset of the maxcube an reconfigured everything. The issue is still there.

HA is running in a docker container and has version 2020.12.0

The system worked fine for the last two years with nearly no issues.

1 post - 1 participant

Read full topic

Round value of temperature sensor

$
0
0

I have recently added Sonoff switch with temperature sensor. I have added entity to the dashboard and it shows temp. with huge number of decimals after coma 2,16249990463257 °C. Is there any way to cut this to 1 decimal?

1 post - 1 participant

Read full topic

Switch on/off automation on sunset/sunrise and HASS restart

$
0
0

I am struggling with setting up and automation. I want lights to turn on on sunset and off on sunrise. Basically I did that, but the problem starts when I have to restart Home Assistant for a reason. If the lights are off (for example after power outage) and then HA restart on power being back, they don’t turn on (even if it’s after sunset). I added another trigger:

  - platform: homeassistant
    event: start

Now, they are back on HA restart, but… even if it’s before sunset.
What these automations should look like to turn lights on and off on sunset and sunrise including power outages that may occur during these times?

2 posts - 2 participants

Read full topic

Consuming mqtt_statestream

$
0
0

So mqtt_statestream provides a really simple way to publish all (or some) entities to MQTT, with options for also publishing attributes and last changed timestamps. However, it surprised me that there’s not a similar “client” component for this functionality to consume easily consume these entities on another HA instance.

What I want to do is simply to “mirror” some sensors from one HA instance on another, with (at least) the state/value and last changed timestamps available.

So far, I have publishing the states using mqtt_statestream, and consuming them using mqtt platform sensors. Is that the best way to go? mqtt_statestream is able to publish attributes/timestamps, but it does so on separate topics that are not picked up by the mqtt sensors. I see there’s a json_attribute_template on the mqtt sensors, but of course the attributes aren’t published as json, so I don’t see how that’s going to work.

It seems to me this is harder than it could be. Am I on the right track? What’s the best way to get the timestamps copied over together with the state? Thanks!

1 post - 1 participant

Read full topic

ZHA with TS0044 4-way switch


Multiple domains in input entity

$
0
0

Hi,

i am advancing my motion sensor blueprint and want to add groups as trigger. That is because if you need multiple mostion sensors to cover an area groups are really usefull and work well.

Now i can use two input entitys, make them optional and write down that at least one must be used and chaning the rest of the bluerprints to this two entitys (not that user friendly and harder to mantain) or i can make the entity choosable not only with motion sensor but with groups too.

So one input selector but with two domains, something like this:


input:
    motion_entity:
      description: Motion Sensor as trigger. Choose at least one trigger, otherwise this automation will never trigger
      default: none
      name: Motion Sensor
      selector:
        - entity:
            domain: binary_sensor
            device_class: motion
        - entity:
            domain: group

But that is not working:

2020-12-19 21:03:44 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: Invalid blueprint: Expected a dictionary for dictionary value @ data[‘blueprint’][‘input’][‘motion_entity’][‘selector’]. Got [OrderedDict([(‘entity’, OrderedDict([(‘domain’, ‘binary_sensor’), (‘device_class’, ‘motion’)]))]), OrderedDict([(‘entity’, OrderedDict([(‘domain’, ‘group’)]))])] (See /config/configuration.yaml, line 68).

Does somebody know if this is possible?

1 post - 1 participant

Read full topic

Google assistant, home assistant and chromecast video streamer

$
0
0

I normally use Google Assistant (w/ Netflix) to stream content to my chromecast. But with the content leaving Netflix, I thought I might be able to store the content (from the DVDs I already own) on my Home Assistant (that is integrated with Google Assistant) to stream content to the chromecast but with still using voice commands via Google. Is that possible? I’d like to not use Plex or Kodi if possible and the first choice would be to just store the video files on USB or on my PI that runs HA (currently on v2020.12.0)

Any suggestions or guide our there that I’ve missed?
thanks

1 post - 1 participant

Read full topic

How to write, in short?

$
0
0

Guys, I have this kind of automation …

- alias: door_bell

  trigger:

    - platform: state

      entity_id: binary_sensor.door_window_sensor_158d0003d08258

      to: 'off'      

  action:

    service: xiaomi_aqara.play_ringtone

    data:

      gw_mac: 34:ce:00:88:c1:a9

      ringtone_id: 10

      ringtone_vol: >

        {% if 0 <= now().hour <= 7 %}

          5

        {% else %}

          90

        {% endif %}

- alias: door_bell_2

  trigger:

    - platform: state

      entity_id: binary_sensor.door_window_sensor_158d0003d08258

      to: 'off'      

  action:

    service: xiaomi_aqara.play_ringtone

    data:

      gw_mac: 04:cf:8c:a1:17:12

      ringtone_id: 10

      ringtone_vol: >

        {% if 0 <= now().hour <= 7 %}

          5

        {% else %}

          90

        {% endif %}

In fact, both automations do the same thing, ring the bell, but on two different bases. Tell me if it is possible to write this more compactly, so that it is not two automation, but one. I just recently installed HA and I still can’t do everything)))

2 posts - 2 participants

Read full topic

Quick Question, YAML Format

$
0
0

I’m a little confused with the newer automation interface and its auto-generated code.

I create a lighting automation using the interface in Lovelace…

Editor

I want to specify the color and transition time, so I go into the “Edit YAML” option.

YAML

The problem is that no matter how I enter the variables here I get an error. Ive tried…

rgb_color:
  - 20
  - 85
  - 255

and…

rgb_color: [20, 85, 255]

So what is the proper adjustments to the YAML to get this variable to work?

Thanks a lot,
Steven

2 posts - 2 participants

Read full topic

How to display an entity as a toggleable switch?

$
0
0

I use the wonderful auto-entities card to dynamically display the status of a dynamic sent of entities (for instance anything that has “battery” as an attribute). It works great.

I now have the following problem: I have entities in my custom domain (say, mydomain.hello and mydomain.world) that are generated programmatically outside of the HA UI. I would like to have a card where the state of these entities is displayed (so far this the same as the example of the batteries above), but in the form of a switch I can toggle to change the state from ‘on’ to ‘off’ and back.

So far I just get the state of the entity, but do not know how to make it changeable. Is this possible with that card?

3 posts - 2 participants

Read full topic

Viewing all 106430 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>