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

Google Nest Hub Cast Display Sizing Wrong

$
0
0

Hello,

I laid out a custom Lovelace design that was working perfectly via cast to my Google Nest Hub screen. A few HA updates ago, it now only works well half of the time. The problem is that half the time, it looks perfect - filling the entire Nest Hub screen - as it has been doing since design. But the other half of the time when it is activated via automation (hue motion sensor) it takes up less than a third of the screen and is too small to be useful. Please see screenshots for examples. I haven’t found a pattern of why it works sometimes and not others - how can I get it to consistently show full screen like it always used to do? TIA!

2 posts - 2 participants

Read full topic


Weird error in automation

$
0
0

Ive got a couple of simple automation which use dictionaries and dictionaries in both are mirrored.

- alias: Set Central Heating Temporary Mode
    initial_state: on
    trigger:
      - platform: state
        entity_id: input_select.central_heating_temporary_mode
    action:
      - service: automation.turn_off
        entity_id: automation.get_central_heating_temporary_mode
      - service: mqtt.publish
        data_template:
          topic: "ebusd/f47/Hc1SFMode/set"
          payload: >
            {% set tpmode = {
              'None': 'none',
              'Day away': 'onedayholiday',
              'Day in': 'onedaybankholiday',
              'Party': 'party' } %}
            {{ tpmode.get(trigger.to_state.state,'none') }}
      - delay: 00:00:05
      - service: automation.turn_on
        entity_id: automation.get_central_heating_temporary_mode

  - alias: Get Central Heating Temporary Mode
    initial_state: on
    trigger:
      - platform: mqtt
        topic: "ebusd/f47/Hc1SFMode"
    action:
      service: input_select.select_option
      data_template:
        entity_id: input_select.central_heating_temporary_mode
        option: >
          {% set tpmode = {
            'none': 'None',
            'onedayholiday': 'Day away',
            'onedaybankholiday': 'Day in',
            'party': 'Party' } %}
          {{ tpmode.get('trigger.payload','None') }}

Unfortunately, the second one doesnt seem to work and Home Assistant throws out an error:

Logger: homeassistant.components.automation.get_central_heating_temporary_mode
Source: helpers/script.py:1122
Integration: Automation ([documentation](https://www.home-assistant.io/integrations/automation), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+automation%22))
First occurred: November 23, 2020, 8:04:30 PM (313 occurrences)
Last logged: 1:14:05 AM

* Get Central Heating Temporary Mode: Error executing script. Invalid data for call_service at pos 1: string value is None for dictionary value @ data['option']
* Get Central Heating Temporary Mode: Already running
logger: homeassistant.components.automation.get_central_heating_temporary_mode
Source: core.py:1405
Integration: Automation ([documentation](https://www.home-assistant.io/integrations/automation), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+automation%22))
First occurred: November 23, 2020, 8:04:30 PM (311 occurrences)
Last logged: 1:14:05 AM

While executing automation automation.get_central_heating_temporary_mode

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/automation/__init__.py", line 433, in async_trigger await self.action_script.async_run( File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1010, in async_run await asyncio.shield(run.async_run()) File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 245, in async_run await self._async_step(log_exceptions=False) File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 253, in _async_step await getattr( File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 460, in _async_call_service_step await service_task File "/usr/src/homeassistant/homeassistant/core.py", line 1405, in async_call processed_data = handler.schema(service_data) File "/usr/local/lib/python3.8/site-packages/voluptuous/validators.py", line 218, in __call__ return self._exec((Schema(val) for val in self.validators), v) File "/usr/local/lib/python3.8/site-packages/voluptuous/validators.py", line 340, in _exec raise e if self.msg is None else AllInvalid(self.msg, path=path) File "/usr/local/lib/python3.8/site-packages/voluptuous/validators.py", line 336, in _exec v = func(v) File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 272, in __call__ return self._compiled([], data) File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 817, in validate_callable return schema(data) File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 272, in __call__ return self._compiled([], data) File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 594, in validate_dict return base_validate(path, iteritems(data), out) File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 432, in validate_mapping raise er.MultipleInvalid(errors) voluptuous.error.MultipleInvalid: string value is None for dictionary value @ data['option']

I don’t really get it, why only one errors if both have almost same dictionaries but mirrored.

1 post - 1 participant

Read full topic

Are theme's background images not working for anyone else recently?

$
0
0

After a recent update (I think it was .116 but it may have been .117) none of my theme’s background images/colors are working. It just displays as a totally white background.

Has anyone run into this lately? Even the built in dark theme has a white background.

1 post - 1 participant

Read full topic

Help! How to cast Blue Iris Camera feed to Android TV on motion

$
0
0

Hello All,

I have a Blue Iris PC with few POE cameras and my Home Assistant Instance ( talks to BI using @bar bi addon - https://github.com/elad-bar/ha-blueiris ). I recently purchased a Sony 900h TV and can be integrated to Home Assitant using – Sony Bravia, Google Cast, or Homekit.

I"m trying to see how I can push the camera feed ( i have a motion sensor entity for that camera ) to my Sony TV when there is motion and resume the TV ( whatever is playing before ) when the motion sensor is off. Also, hoping I can have a virtual switch that can be turned on and off for the above flow to work.

Any help on this is highly appreciated. My NodeRed skills are not so great. thank you.

1 post - 1 participant

Read full topic

Automation left zone previous hours enter new zone

$
0
0

Hi,

I’m trying to do an automation that inform my parents that I arrived home when I leave their home previously.

I want the trigger to be when I get home if in the last 3 hours I was at my parents’ house an action is taken.

I’m unable to perform the check if my location in last 3 hours was parents home.

Do you know how to do it?

2 posts - 2 participants

Read full topic

Google Cast not finding google devices

$
0
0

Home Assistant Virtual Machine and Google devices all on the same IoT Vlan. Google cast integration can’t find the google devices, half dozen of them some minis, a hub, and a few CC Audios.

PC hosting the VM is dual networked to both the Iot Vlan and the Trusted Vlan. HA VM is bridged through the IoT Vlan network link, and it has its own ip on the Vlan, doesn’t share with the host.

My phone on the trusted network can see and interact with them.
Laptop and PCs in the trusted network can see them.
So mDNS on my ubiquity gear is working.

What could be preventing HA from seeing the cast devices?

1 post - 1 participant

Read full topic

Aqara Opple 6-button switch stops generating ZHA events

$
0
0

I managed to pair the switch via ZHA integration and a reflashed CC2531 dongle from Itead. Since the only entity that comes up in HA is the power status, I started listening to zha_events to document them for use in automations.

I’ve now noticed that the events stop being generated after several minutes of idle time. Is that a characteristic of the Aqara to conserve battery life or is my HA setup to blame? What could I look at to learn more?

Thanks

1 post - 1 participant

Read full topic

Automation Syntax, again

$
0
0

For something so simple, an old school PLC automation and HMI guy such as me continues to have problems with Ninja and scripting specifics, all the while amazed at the generalities of the language.

Case in point, the following automation:

- id: 'conditional max temp'
  alias: 'conditional test max temp'
  description: ''
  trigger:
    platform: numeric_state
    entity_id: input_number.test_number
    above: "{{ states('input_number.test_max_temp')|int }}"
  condition: []
  action:
  - service: input_number.set_value
    data:
      value: "{{ states('input_number.test_number')|int }}"
    entity_id: input_number.test_max_temp
  mode: single 

The code passes config check but fails with a log entry:

“Invalid config for [automation]: expected float for dictionary value @ data[‘above’]. Got None. (See /config/configuration.yaml, line 2)”

I have tried any number of versions of the ‘above’ expression but without luck.

What am I missing?

Thanks.

2 posts - 2 participants

Read full topic


Unable to build custom appdaemon

$
0
0

Can anyone help me with some docker stuff? Ive been trying to figure out how to add /dev/i2c-1 mapping to the appdaemon add-on but can’t figure out how to get it to stick. I have been able to duplicate the image with portainer and add the mapping there but then once I go back into home assistant and restart the addon for any reason the mapping goes away. Can someone help guide me through the process of either editing the existing official appdeamon addon so it has the /dev/i2c-1 mapping to /dev/i2c-1 on system or if it’s not possible to help guide me through doing the same thing with a custom addon version of the appdaemon addon.
I have portainer and am running home assistant supervised ontop of raspbian. I already tried creating a custom version of the appdaemon addon by adding “devices”: ["/dev/i2c-1:/dev/i2c-1:rwm"] to config.json however I ran into an error that said

/bin/bash -o pipefail -c apk add --no-cache --virtual .build-dependencies gcc=9.3.0-r2 libc-dev=0.7.2-r3 libffi-dev=3.3-r2 patch=2.7.6-r6 python3-dev=3.8.5-r0 && apk add --no-cache py3-pip=20.1.1-r0 python3=3.8.5-r0 && pip install --no-cache-dir --prefer-binary --find-links "https://wheels.home-assistant.io/alpine-3.12/$%7BBUILD_ARCH%7D/" -r /tmp/requirements.txt && cd /usr/lib/python3.8/site-packages/ && patch -p1 < /patches/force_recompile.patch && patch -p1 < /patches/hassio.patch && find /usr/local ( -type d -a -name test -o -name tests -o -name 'pycache' ) -o ( -type f -a -name '.pyc' -o -name '.pyo' ) -exec rm -rf '{}' + && apk del --no-cache --purge .build-dependencies' returned a non-zero code: 45

This error is the biggest challenge because I feel if i can get my custom version of appdaemon to work i’ll be able to figure out the rest.

1 post - 1 participant

Read full topic

RF button in HA

$
0
0

Hi all! can someone share with me an example to make a switch in HA in order to replace the RF remote of my garage door please?
I am seeing that the remote control is 433mhz so I would like to add my garage door to HA.
Best to all, thanks so much in advance! :slight_smile:

1 post - 1 participant

Read full topic

Home Assistant Companion sensors not migrating to home assistant

$
0
0

Home assistant companion I can log into my home assistant fine, I enabled all the sensors but it will not send that info to my home assistant nor do any entities show up for the phone like it use to on the previous version like the GPS and battery sensors the only entity for the phone I have is my WIFI entity that was before I installed companion

1 post - 1 participant

Read full topic

Motion Sensors - need recommendations

$
0
0

Hi,
I need motion sensors for backyard lights, so just checking if anyone here has experience working with any motion sensors. The search results on Amazon were weird and all kind of gizmo showed up for motion sensor search.

Found few such as - https://www.amazon.com/Aqara-RTCGQ11LM-Motion-Sensor-White/dp/B07D1CRRVF but these seems pricey and not sure if it will work with HA.

I will really appreciate any recommendations on the subject.
Thanks,

Pankaj

1 post - 1 participant

Read full topic

118.3 this morning crash!

$
0
0

Hi,
This morning, just after 118.3 update I did a server restart:
2020-11-24 14:05:58 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.

And now no HACS anymore and so almost nothing working in Lovelace :worried:
Help !
Thank you

3 posts - 2 participants

Read full topic

Raw UI Editor with extra features?

$
0
0

Hey everyone,

I was wondering if there is a way to access the Raw UI Editor file with another editor.
Like VScode or notepad ++, so i can use find/replace and stuff.

If i edit the lovelace file in storage i need to restart for changes to take effect, plus it’s encoded in json (or something)

Any way i can access the file through samba?
Or is there any good code editor chrome addons?

Thanks in advance

2 posts - 2 participants

Read full topic

Log error for automation

$
0
0

Hi guys,

When trying to restart I got these errors but I’ve got no idea how to fix it.
Any help would be very welcome!

Invalid config for [automation]: expected a dictionary for dictionary value @ data['action'][0]['repeat']. Got None extra keys not allowed @ data['action'][0]['count']. Got None extra keys not allowed @ data['action'][0]['sequence']. Got None extra keys not allowed @ data['data']. Got None extra keys not allowed @ data['entity_id']. Got None. (See /config/configuration.yaml, line 15).
Invalid config for [automation]: expected a dictionary for dictionary value @ data['action'][0]['repeat']. Got None extra keys not allowed @ data['action'][0]['count']. Got None extra keys not allowed @ data['action'][0]['sequence']. Got None extra keys not allowed @ data['data']. Got None extra keys not allowed @ data['entity_id']. Got None. (See /config/configuration.yaml, line 16).
Invalid config for [automation]: expected a dictionary for dictionary value @ data['action'][0]['repeat']. Got None extra keys not allowed @ data['action'][0]['count']. Got None extra keys not allowed @ data['action'][0]['sequence']. Got None extra keys not allowed @ data['data']. Got None extra keys not allowed @ data['entity_id']. Got None. (See /config/configuration.yaml, line 17).

3 posts - 3 participants

Read full topic


Sensor settings and incorrect data when restarting the router

$
0
0

Hi, I’m a novice user, but Home Assistant is great. I bought a Shelly 3EM to measure the energy consumed. Everything works great until I restart the router.

Shelly 3EM is connected via the ShellyForHass plugin in version 0.2.0. Everything runs on Raspberry Pi 4 and Home Assistant in version 0.118.3. In configuration.yaml I set a formula for the “platform: template”, which adds up the absolute consumption of the individual electrical phases.

Looks like this:

sensor:
  - platform: template
    sensors:
      energy_consumption_total:
        friendly_name: Energy Consumption Total
        icon_template: mdi:flash
        unit_of_measurement: kWh
        value_template: "{{ states('sensor.shelly_shem_3_40f52001972c_1_total_consumption')|float + states('sensor.shelly_shem_3_40f52001972c_2_total_consumption')|float + states('sensor.shelly_shem_3_40f52001972c_3_total_consumption')|float}}"

Everything works fine until I restart or turn off the router to which my devices are connected for more than a few seconds. Then anomalies appear in the graph based on “energy_consumption_total”, which also affects all other variables that are derived from them.

Shelly 3EM

The strange thing is that the sensors that the formula works with ("'sensor.shelly_shem_3_40f52001972c_1_total_consumption., Etc.") did not detect any anomalies.

Shelly 3EM phase1

Where do you think the problem is? Shelly EM3 sensors appear to be OK according to the graph. So is the problem in the formula that adds them, or directly in the Home Assistant kernel?

We’ve been to many places on the internet, but haven’t found an answer. Can anyone think of finding and fixing the cause of the error?

1 post - 1 participant

Read full topic

Sonoff POW consuption reading

$
0
0

Hi, could somebody tell what is wrong? I have 3 Sonoff POW modules, I see power, voltage, current. But the consuption just of Upravna. The 2nd (Trachycarpus) and 3rd (Garaz) still not visible. Below my config…
Thanks for help, Jiri
sensor:

  • platform: template
    sensors:
    today_consumption:
    friendly_name: Upravna Today consumption
    unit_of_measurement: kWh
    value_template: “{{ state_attr(‘switch.sonoff_1000bd9593’, ‘consumption’).0 }}”
    ten_days_consumption:
    friendly_name: Upravna 10 days consumption
    unit_of_measurement: kWh
    value_template: “{% set p=state_attr(‘switch.sonoff_1000bd9593’, ‘consumption’) %}{{ p[:10]|sum if p }}”

  • platform: template
    sensors:
    today_consumption:
    friendly_name: Trachycarpus Today consumption
    unit_of_measurement: kWh
    value_template: “{{ state_attr(‘switch.sonoff_1000cd9924’, ‘consumption’).0 }}”
    ten_days_consumption:
    friendly_name: Trachycarpus 10 days consumption
    unit_of_measurement: kWh
    value_template: “{% set p=state_attr(‘switch.sonoff_1000cd9924’, ‘consumption’) %}{{ p[:10]|sum if p }}”

  • platform: template
    sensors:
    today_consumption:
    friendly_name: Garáž Today consumption
    unit_of_measurement: kWh
    value_template: “{{ state_attr(‘switch.sonoff_1000bd7d01’, ‘consumption’).0 }}”
    ten_days_consumption:
    friendly_name: Garáž 10 days consumption
    unit_of_measurement: kWh
    value_template: “{% set p=state_attr(‘switch.sonoff_1000bd7d01’, ‘consumption’) %}{{ p[:10]|sum if p }}”

1 post - 1 participant

Read full topic

Cover Template open/close

$
0
0

I am using:

cover:
  - platform: template
    covers:
      tuin_voor_poort_cover:
        device_class: gate
        friendly_name: "Tuin Poort"
        value_template: "{{ is_state('binary_sensor.tuin_v_poort_sensor_956', 'on') }}"
        open_cover:
          service: script.pulse_gate
        close_cover:
          service: script.pulse_gate

With:

pulse_gate:
  alias: pulse_gate
  sequence:
  - service: switch.turn_on
    data: {}
    entity_id: switch.tuin_v_poort_e1_schakelaar_1188
  - delay: '1'
  - service: switch.turn_off
    data: {}
    entity_id: switch.tuin_v_poort_e1_schakelaar_1188
  mode: single
  icon: mdi:gate

resulting in:
image

This works well in usage!

But I cannot use this in an automation.

If I do call a service t open cover or close a cover it can easily do the opposite.

So if the cover is closed, If I open it, it opens. But if is already open and I call service to open it closes!
this way it is not reliable in an automation (or in node-red).

What is wrong with this behavior? Did I miss any setting?

3 posts - 2 participants

Read full topic

Attributing actions to the voice-invoking user in Logbook

$
0
0

I really like the Logbook view. In most situations, it works as I would expect; if I make a change through my web login, I get stuff like “Entity turned off by Sam”. If my wife makes a change through her login, I get “… changed to cool by Jess”. If it’s something untrackable (like a physical button or remote control) I just get an unattributed action, like “Entity turned on”.

I’ve noticed that when me or my wife make changes through Google Assistant (“Hey Google, close the blinds”) it’s always attributed to me, presumably because I set it all up.

  1. The Assistant app is smart enough to know the difference between me and my wife (we’ve both set voice match up). Is this information plumbed through to 3P integrations? My dream scenario is that voice actions would continue to be attributed, but to the right user.

  2. If this information isn’t available to 3P integrations - could we flag these as “…turned off by voice command” instead of attributing them to the user who set them up?

I don’t know about the other Assistants, but Google has a page that lets you review audio snippets (although NB there can be a bit of latency, and I haven’t verified if this includes audio that was voice matched to my wife):

https://myactivity.google.com/myactivity?min=1606136400000000&max=1606222799999999&product=31

Those min and max values are timestamps and product=31 filters to Assistant. I wonder if you could (in my #2 scenario) link out from “voice command” in the logbook to that URL, so a user could follow the link and play back the audio to see who it was.

1 post - 1 participant

Read full topic

Changing Integration parameters programatically, such as Lat Long in OpenWeatherMap

$
0
0

I’m building a sensor to track the weather conditions at the location of my next appointment from my Google calendar.

OpenWeatherMap is one of few weather Integrations where the you can set the Lat Long of the location, but I need to be able to set these parameters dynamically since the location of my next appointment will change.

For example, I see that SERVICE HOMEASSISTANT.SET_LOCATION is available for setting the Lat Long of the HA’s Home (Zone) and was wondering if anyone knows of a way to dynamically change key parameters in an Integration.

1 post - 1 participant

Read full topic

Viewing all 109599 articles
Browse latest View live


Latest Images

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