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

Stumped using a State Attribute as a Trigger in an Action

$
0
0

@gooberautomation wrote:

I want to be alerted when my thermostat changes its “hvac_action” attribute. This would be heating to idle, idle to heating, cooling to idle, idle to cooling. There are only these three values: heating, idle, cooling. I’m simply interested in any change of the attribute.

I’ve fiddled and fiddled, but every attempt results in errors from the configuration validator. As it sits now (see below) the validator complains about an invalid use of value template. Note that Blockquote inserted dots where I have dashes in my code. I feel like I’m dancing around the answer and just can’t quite nail it down.

- alias: NOTIFICATION Furnace Mode Changes
  trigger:
    platform: state
    entity_id: climate.trane_corporation_model_tzemt524aa21ma_mode
    value_template: >
      {{ trigger.to_state.attributes.hvac_action !=
         trigger.from_state.attributes.hvac_action }}
  action:
    - service: notify.clicksend_bkk
      data:
        message: 'Furnace action {{ state_attr("climate.trane_corporation_model_tzemt524aa21ma_mode","hvac_action") }}, Temp: {{ state_attr("climate.trane_corporation_model_tzemt524aa21ma_mode","temperature") }}'

Other stuff I monkeyed with…

Tried using platform:template as the trigger with:

"{{ state_attr('climate.trane_corporation_model_tzemt524aa21ma_mode', 'hvac_action') }}"

Also tried this as a value_template at one time…

  value_template: >
    {{ state_attr('climate.trane_corporation_model_tzemt524aa21ma_mode', 'hvac_action') in ['idle','heating','cooling'] }}

…and this…

  value_template: {{ state_attr('climate.trane_corporation_model_tzemt524aa21ma_mode', 'hvac_action') }}

Posts: 5

Participants: 4

Read full topic


A Run Once Automation

$
0
0

@qhealy wrote:

Hi, I’m trying to create an automation which will run only once every time it’s enabled/turned on. For instance, currently I have an automation to heat the hot water in the morning. It turns on at say 06:30 in the morning. I have a second automation that runs at midday every day to turn off the first automation so that it will never run more than once. But this seems a bit of a hack and i’d prefer to just have one automation to handle the functionality of both. Preferably the first automation would turn itself off as soon as it fires. Is there a way to do this? thanks in advance.

Posts: 2

Participants: 2

Read full topic

iBlinds is light instead of cover?

$
0
0

@ktownsend-personal wrote:

I paired my new iBlinds via z-wave and home assistant added switch and light entities instead of a cover entity. Does anyone know how to fix that?

Posts: 6

Participants: 3

Read full topic

Help with shelly and switch status on HA dashboard

$
0
0

@fra wrote:

Dear all, i need help to solve a problem with Shelly 1/PM/EM
This is the scenario:

Every time in my house there is a power outage the switch status of my shellys on HA dashboard remain to ON (switched on) without change its status to off … and this is very frustrating.

Someone could help me to find a solution?
I wanna that if my shelly doesn’t have power the switch goes to off status.

Thanks a lot.

Posts: 2

Participants: 2

Read full topic

ONVIF Camera Questions

$
0
0

@94Z28 wrote:

Hello Everyone! I have been reading other topics about ONVIF camera errors, but mine don’t seem identical. I have validated the camera with VLC on windows, then also on FFMPEG via command line on the raspberry. I didn’t get any issues with ffmpeg there, but the error below shows on reboot of HA.

It’s latest version, running on a VENV. Share any ideas you have to fix this, I will also continue to tinker

Sun Jan 19 2020 18:51:16 GMT-0500 (Eastern Standard Time)
Error while setting up platform onvif
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 150, in _async_setup_platform
    await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
  File "/usr/lib/python3.7/asyncio/tasks.py", line 416, in wait_for
    return fut.result()
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/onvif/camera.py", line 118, in async_setup_platform
    await hass_camera.async_initialize()
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/onvif/camera.py", line 166, in async_initialize
    await self._camera.update_xaddrs()
  File "/srv/homeassistant/lib/python3.7/site-packages/onvif/client.py", line 233, in update_xaddrs
    capabilities = await self.devicemgmt.GetCapabilities({'Category': 'All'})
  File "/srv/homeassistant/lib/python3.7/site-packages/zeep/asyncio/bindings.py", line 20, in send
    return self.process_reply(client, operation_obj, response)
  File "/srv/homeassistant/lib/python3.7/site-packages/zeep/wsdl/bindings/soap.py", line 170, in process_reply
    doc = parse_xml(content, self.transport, settings=client.settings)
  File "/srv/homeassistant/lib/python3.7/site-packages/zeep/loader.py", line 54, in parse_xml
    forbid_entities=settings.forbid_entities,
  File "/srv/homeassistant/lib/python3.7/site-packages/defusedxml/lxml.py", line 146, in fromstring
    elementtree = rootelement.getroottree()
AttributeError: 'NoneType' object has no attribute 'getroottree'

Posts: 1

Participants: 1

Read full topic

How many binary sensors can a Wemos D1 Mini handle?

$
0
0

@bphillips921 wrote:

I am looking to monitor about 30 binary sensors (magnetic door sensors). They will be hardwired, all terminated in the same place. I know I can monitor these with a Tasmotized Wemos D1 Mini, but I can only find out how to monitor one. Is there a way to monitor several of these binary sensors with one Wemos D1 Mini?

Posts: 8

Participants: 4

Read full topic

Lost z-wave thermostats when upgrading from 0.102 to 0.103 (or 0.104)

$
0
0

@cssbhome wrote:

I have been using HomeAssistant successfully to control temperature in my house. I have two thermostats, both z-wave. One is a CT101 controlling my gas furnace, the other one a Stelpro controlling an electric floor heating system. Both work when used with Home Assistant up to 0.102.

After upgrading Home Assistant to 0.103 I lose both thermostats in the interface and the climate automations do not work anymore. Same after upgrading to 0.104, the Lovelace card details tell me that “This entity is currently unavailable and is an orphan to a removed, changed or dysfunctional integration or device. If the entity is no longer in use, you can clean it up by removing it.

When I downgrade to 0.102 the devices show up again and the climate automations work.

I have read the upgrade notes for 0.103 and 0.104, but am unable to find why the entities get unavailable or what else to do to rectify the problem. I am sure I am missing something, can anyone help?

Posts: 4

Participants: 2

Read full topic

How to Scrape Multiple Values

$
0
0

@ben-digitalhive wrote:

Hi there - I am trying to use the SCRAPE component to pull a tag from my local council website - garbage collection and have this successfully pulling the first date. I have think I have enough understanding to pull the second tage however my question is:

Q: How do you run the SCRAPE platform and pull multiple tags to different variables? And ideally do this in one go (i.e. hit the website once and pull multiple tags as opposed to running a separate scrape for each variable)

# Add a web scraper to get garbage collection days from Auckland Council website
  - platform: scrape
    resource: 'https://www.aucklandcouncil.govt.nz/rubbish-recycling/rubbish-recycling-collections/Pages/collection-day-detail.aspx?an=12341658037'
    select: ".m-r-1"
    name: "Garbage Collection Next"
    value_template: > 
        {% set strtext = value + " 2020" %}
        {{ strptime(strtext.split(' ', 1)[1], '%d %B %Y') }}
    unit_of_measurement: date
    scan_interval: 86400

Posts: 1

Participants: 1

Read full topic


Garage Door Cover with Homematic IP Components

$
0
0

@weaverprojects wrote:

Hi,

I just can’t get a garage door in Hassio. My components are a switch.garagentor and a binary_sensor.garagentor. With the example from the home assistant website it doesn’t work.
What should I do?

Cover Template

Posts: 3

Participants: 2

Read full topic

Turning on intergrated screen using command line in HA

$
0
0

@trentjw wrote:

I have a Raspberry pi4 with a intergrated touch screen monitor that has Home assistant installed via Venv on it.
I am using it as a control panel to control Home assistant, currently I have it to where it shuts off when not being used I prefer to have it keep doing that, I can remote in using putty to SSH and send these commands, export DISPLAY=:0 and xset dpms force on it turns on the display for a few mins just like I want, my question is how do I get Home assistant to do this via automation when it senses that I am home, I already have automation that turns on the lights and couple other things when I get home that part is done just need to add in the commands to turn on the monitor

Posts: 1

Participants: 1

Read full topic

InfluxDB/Grafana can't connect to internet

Led gradient over four colors by CO2 sensor

$
0
0

@Lipown wrote:

HI,

my idia is to change color my ESPhome 8212 leds based on CO2 values from my sensor so to create gradient over over blue, green, orange, red. Any idea how to do that please?

Posts: 1

Participants: 1

Read full topic

Working firetv component?

$
0
0

@Aly_Colquhoun wrote:

Any know a working firetv component I have tryed a few online but they don’t work most don’t add to the repository

Posts: 1

Participants: 1

Read full topic

Mysensors Lan Gateway lost connection

$
0
0

@kbenni wrote:

Hello,

I have a Mysensors Sensebender Lan gateway with W5100 ethernet module.
Running on 2.3.1 mysensors version with static IP.
Home assistant is running in docker.

My problem is that the Mysensors gateway is working as expected for few days and after few days the connection between Gateway and HomeAssistant is closed and the Home assistant is not reconecting.

Normally when everything is working i have this in logs:

2020-01-20 21:36:41 DEBUG (MainThread) [mysensors] Sending 0;255;3;0;2;
2020-01-20 21:36:41 DEBUG (MainThread) [mysensors] Receiving 0;255;3;0;2;2.3.1
2020-01-20 21:36:44 DEBUG (MainThread) [mysensors] Sending 172;1;1;1;2;1
2020-01-20 21:36:51 DEBUG (MainThread) [mysensors] Sending 0;255;3;0;2;
2020-01-20 21:36:51 DEBUG (MainThread) [mysensors] Receiving 0;255;3;0;2;2.3.1

but then i have this in logs:

2020-01-20 14:13:03 DEBUG (MainThread) [mysensors.gateway_tcp] Connection lost with <_SelectorSocketTransport closing fd=16 read=idle write=<idle, bufsize=0>>
2020-01-20 16:25:30 INFO (MainThread) [homeassistant.components.websocket_api.http.connection.140351562007056] Connection closed by client

and then when the connection is closed, I have no more mysensor logs. When I telnet the gateway it is working as expected, i can see that it is receiving data from nodes.

Any Idea what can I do?

Benjamin

Posts: 1

Participants: 1

Read full topic

Climate Card Unknown Controls


Home Assistant to trigger an audio file when I say a command to google

$
0
0

@amtul_sara wrote:

Hi All,

I’m new to this, so please bare with me If I ask something stupid. I would like HA to trigger an audio file locally from the Pi, when I say something to google. Is this do-able or not?

Like if I say “Good Night” it should play some audio locally or from youtube.

Thanks for all your help in advance.

Posts: 2

Participants: 2

Read full topic

Mqtt automation after 30 seconds

$
0
0

@alain57 wrote:

Hello,
i have a motion detector that is not working like i was expected and I did a bit of automation
Indeed somehow it detects motion every 5 seconds, but goes to the off status after 90 seconds :confused:

So my plan is to store the timestamp of the last motion it received and when the current time - stored time > 30, turn off the light

basically this is what i did :
if motion detected, publish the current timestamp to an mqtt topic
and i added a sensor (test) that has the value of the mqtt topic

but i didn’t found a way to automate the end of the process :’(

I tried something like this

  trigger:
  - above: '30'
    entity_id: sensor.test
    platform: numeric_state
    value_template: '{{ now().strftime("%s")| int - states(sensor.test) | int  }}'
  condition: []
  action:
  - entity_id: light.lumiere_salle_de_bain_du_bas
    service: light.turn_off

any clue what i’m missing ?

Thanks a lot in advance :wink:

Posts: 1

Participants: 1

Read full topic

Lutron Caseta add device to currently running HA with Caseta

$
0
0

@rumrunner12 wrote:

I have had caseta running on HA with no issues. I added a switch today and setup went fine adding it to the lutron ios app but the new switch is not being pushed to HA. I reset the hub and also HA but the switch is not showing up. Should i reset the lutron configuration and re add it? Not sure what to do?

Posts: 1

Participants: 1

Read full topic

Xiaomi Mijia Yeelight 1S YLDP13YL Smart LED

$
0
0

@frosty22 wrote:

Hi,
do you have anybody new Yeelight 1S YLDP13YL ?
I bought it because it is newest version of Yeelight with higher brightness, but Hass cant see it. I try find any logs, but log is empty and I cant find a error about bad connection etc.

I use same configuration as for my others (old yeelights which works), so:

light:
  - platform: yeelight
    devices:
      192.168.1.211:
        name: Obyvaci pokoj
        transition: 1000
        use_music_mode: false
        save_on_change: false

In Yeelight app I have access enabled.

Do exist any way, how to debug it? I think that API of Bulb will be same as in old version but I don`t know.

Thanks for any help.

Posts: 1

Participants: 1

Read full topic

Unable to restart addon via homeassistant.addon_restart in automation

$
0
0

@nenonano wrote:

hi there.

HA 103.6 on ubuntu 18 via docker

I’ve an automation that calls homeassistant.addon_restart to restart autossh addon

- id: autosshrestart
  alias: V 02 Autossh restart
  trigger:
  - minutes: /30
    platform: time_pattern
    seconds: '0'
  action:
  - data:
      addon: "3351470_autossh"
    service: hassio.addon_restart

it’s used to work in the past, but I found it isn’t working anymore.
If I call the same service via developer tools with the same data, the addon is correctly restarted.
Tied to call the same service in a script, it doesn’t work.
no error evidence in logs, my configuration looks ok (no error if I check it)

any hints?
TIA

Posts: 1

Participants: 1

Read full topic

Viewing all 105900 articles
Browse latest View live


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