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

Sonoff Zigbee Motion & Door Sensor not updating State

$
0
0

Hey guys,

I’ve just picked up some of the new Sonoff Zigbee devices;

SNZB-02 - Temperature and Humidity Sensors
SNZB-03 - Motion Sensor
SNZB-04 - Door/Window Sensor

I’m connected them via SmartThings v3 hub, and they pair fine, I can see their state updates (open/closed, Motion Active etc) in SmartThings app.

However, when added them to HA, the Motion & Door/Window sensors don’t update the State. They’re stuck on Clear for motion and Closed for Door - the states they were in when they got added.

The Temp sensor works absolutely fine, can see those updates being passed through to HA.

Unsure where I might be going wrong and theres not really any config files I can share. Any ideas anyone or has someone else brought these yet?

1 post - 1 participant

Read full topic


Person Tracking state is not consistent

$
0
0

I have set up the HA app on the phones of my wife and I. The person tracking (and other functions) are working well. My problem starts when I use Node Red to configure automations based on the state of the person being tracked.

When using the Events State node to see whether a person is “home” or “not_home” the state randomly changes. I use Developer Tools to check the state of the person and it says the state is “Home”. Note the capital “H” in Home. So, I configure my Events State node “If State” to “is” and “Home” and everything works fine.

A couple of days later I notice that the automation has stopped working. When I check the person tracking in Developer Tools is says the Person State is “home” (note the lower case “h” in “home”.) So, I go back into Node Red and edit the “If State” of the Events State node to “home” with the lower-case “h” and everything works again. Obviously the configuration of the “If State” is case sensitive.

The problem is that some days later the Person State changes back to “Home” inside HA and the automation stops working again! This is driving me nuts. I have no idea why the state generated by HA changes from lower case to upper case and vice versa, randomly.

Any clues?

1 post - 1 participant

Read full topic

Detect HomeKit state_change

$
0
0

(topic withdrawn by author, will be automatically deleted in 24 hours unless flagged)

1 post - 1 participant

Read full topic

SMA Inverters

Condensing automations

$
0
0

I have a few automations that work perfectly however i was wondering if was possible to condense them to two automations.

I have one that turns on the hot water and another which turns on the heating, they are just simple sonoff basic switches. At the moment i have two for the heating (one to turn on and one to turn off. For the hot water i have it turning on (and off) twice a day, so at TWO different times in the day. For this i have 4 different automations.

- id: turnheatingonmainhouse
  alias: 'Main House Heating on'
  trigger:
    - platform: time
      at: "19:30:00"
  action:
    service: switch.turn_on
    entity_id: switch.main_house_general_heating
      
- id: turnheatingoffmainhouse
  alias: 'Main House Heating off'
  trigger:
     - platform: time
       at: "09:30:00"
  action:
    service: switch.turn_off
    entity_id: switch.main_house_general_heating
    
- id: turnwateronmainhouseday
  alias: 'Main House Water on DAY'
  trigger:
    - platform: time
      at: "14:00:00"
  action:
    service: switch.turn_on
    entity_id: switch.main_house_hot_water
      
- id: turnwateroffmainhouseday
  alias: 'Main House Water off DAY'
  trigger:
     - platform: time
       at: "17:00:00"
  action:
    service: switch.turn_off
    entity_id: switch.main_house_hot_water
    
- id: turnwateronmainhousenight
  alias: 'Main House Water on NIGHT'
  trigger:
    - platform: time
      at: "00:00:00"
  action:
    service: switch.turn_on
    entity_id: switch.main_house_hot_water
      
- id: turnwateroffmainhousenight
  alias: 'Main House Water off NIGHT'
  trigger:
     - platform: time
       at: "06:00:00"
  action:
    service: switch.turn_off
    entity_id: switch.main_house_hot_water

Is it possible to condense these 6 automations to just two: one for the heating and one for the water?

Kind regards

2 posts - 2 participants

Read full topic

MyQ Nofitication when garage is Open

$
0
0

At 11 PM I want to check and see if my garage door is left open and send a notification. It sends me one every night saying it’s open when its not. Below is my code, whats wrong with it?

  • id: ‘1591125939411’
    alias: Garage Open Notification
    description: ‘’
    trigger:
    • at: ‘23:00’
      platform: time
      condition:
    • condition: device
      device_id: 1f54183459744bb988c7a2712ed0e309
      domain: cover
      entity_id: cover.garage_door
      type: is_open
      action:
    • data:
      message: Garage Door is still open!
      title: Garage Door

2 posts - 2 participants

Read full topic

Xiaomi Gateway issue - Stop responding after 2h30m!

$
0
0

Hi to all,
My Xiaomi gateway stops responding after 2h30m of home-assistant starts.
xiaomi

Any help for this issue?

1 post - 1 participant

Read full topic

Card background adjustment

$
0
0

I want my background to change according to the value of a sensor so I can see in an eye blink that action is necessary. But if have something wrong in my sentence. Can someone tell me what because I don’t get errors but it seems that ‘<’ isn’t working:

This is what I made:

type: sensor
style: |
  ha-card {
    background:
    {% if is_state('sensor.luftdaten_3081_p1', '< 4.17' ) %}
       lightblue
    {% else if is_state('sensor.luftdaten_3081_p1', '< 14.17' ) %} 
       lightgreen
    {% else %}
      red
    {% endif %}
          ;
  }
entity: sensor.luftdaten_3081_p1
graph: line

2 posts - 2 participants

Read full topic


BME280 not recognised after restoring snapshot

$
0
0

Hey there,

I am using a bme280 sensor. It is working perfectly under my original installation using the following setup in configuration.yaml:

  - platform: bme280
    name: Temperature1
    i2c_address: "0x76"
    operation_mode: 3
    time_standby: 5
    monitored_conditions:
      - temperature
      - humidity
      - pressure

I have created a full snapshot and loaded it on a second SD-card by using the wipe&restore option. Both instances were running the same most recent version of hassio even before restoring on the second card.

With the new card inserted into my RPi4, the bme280 is nowhere to be found. Switching back to the old SD-card containing the exact same setup it shows up again. Everything else has been restored successfully. The bme280 is the only device connected to my RPi4’s pins, though. Just in case it matters: I deleted my database file on the restored installation.

Does anyone have an idea?

Thank you!

1 post - 1 participant

Read full topic

Entity_id missing in automation actions after HA update

$
0
0

In Automation if I set action type: Call service then Service: light.turn_on
I cannot pick which light to turn on because the dropdown is missing:

I still can find this in automation.yaml it just disappeared from the GUI.
I haven’t checked it in the past few days so I’m not 100% sure it was there in the 0.111.3 but it was definietly there in 0.111.0 I think I have set up my test automation in that release.

Anyone else experiencing this? Or is there something wrong on my side?

1 post - 1 participant

Read full topic

Mysensors gateway not being recognized - HA

$
0
0

Hi All,
i’ve built the mysensors gateway with ENC28J60 Ethernet module, RF24 and arduino nano.

on serial monitor of arduino the monitor, i read:

0 MCO:BGN:INIT GW,CP=RNNGA---,FQ=16,REL=255,VER=2.3.2
4 TSM:INIT0 MCO:BGN:INIT GW,CP=RNNGA---,FQ=16,REL=255,VER=2.3.2
4 TSM:INIT
5 TSF:WUR:MS=0
12 TSM:INIT:TSP OK
13 TSM:INIT:GW MODE
15 TSM:READY:ID=0,PAR=0,DIS=0
18 MCO:REG:NOT NEEDED
71 GWT:TIN:IP=192.168.80.9
1074 MCO:BGN:STP
1075 MCO:BGN:INIT OK,TSP=1
1078 TSM:READY:NWD REQ
1083 ?TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:
0 MCO:BGN:INIT GW,CP=RNNGA---,FQ=16,REL=255,VER=2.3.2
4 TSM:INIT
5 TSF:WUR:MS=0
12 TSM:INIT:TSP OK
13 TSM:INIT:GW MODE
15 TSM:READY:ID=0,PAR=0,DIS=0
18 MCO:REG:NOT NEEDED
71 GWT:TIN:IP=192.168.80.9
1074 MCO:BGN:STP
1075 MCO:BGN:INIT OK,TSP=1
1078 TSM:READY:NWD REQ
1083 ?TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:
13182 GWT:TSA:ETH OK
13190 GWT:RFC:MSG=0;255;3;0;2;
23293 GWT:RFC:MSG=0;255;3;0;2;
33400 GWT:RFC:MSG=0;255;3;0;2;
43508 GWT:RFC:MSG=0;255;3;0;2;
53615 GWT:RFC:MSG=0;255;3;0;2;
63723 GWT:RFC:MSG=0;255;3;0;2;
73830 GWT:RFC:MSG=0;255;3;0;2;
83937 GWT:RFC:MSG=0;255;3;0;2;
94044 GWT:RFC:MSG=0;255;3;0;2;
104153 GWT:RFC:MSG=0;255;3;0;2;
114259 GWT:RFC:MSG=0;255;3;0;2;
124366 GWT:RFC:MSG=0;255;3;0;2;
134474 GWT:RFC:MSG=0;255;3;0;2;
144581 GWT:RFC:MSG=0;255;3;0;2;
154689 GWT:RFC:MSG=0;255;3;0;2;
164798 GWT:RFC:MSG=0;255;3;0;2;
174905 GWT:RFC:MSG=0;255;3;0;2;
185013 GWT:RFC:MSG=0;255;3;0;2;
195324 GWT:RFC:MSG=0;255;3;0;2;
205228 GWT:RFC:MSG=0;255;3;0;2;
215334 GWT:RFC:MSG=0;255;3;0;2;
225441 GWT:RFC:MSG=0;255;3;0;2;
235549 GWT:RFC:MSG=0;255;3;0;2;
245657 GWT:RFC:MSG=0;255;3;0;2;
255970 GWT:RFC:MSG=0;255;3;0;2;
265872 GWT:RFC:MSG=0;255;3;0;2;
275980 GWT:RFC:MSG=0;255;3;0;2;
286088 GWT:RFC:MSG=0;255;3;0;2;
296196 GWT:RFC:MSG=0;255;3;0;2;
306302 GWT:RFC:MSG=0;255;3;0;2;
316411 GWT:RFC:MSG=0;255;3;0;2;
326518 GWT:RFC:MSG=0;255;3;0;2;
336625 GWT:RFC:MSG=0;255;3;0;2;
346733 GWT:RFC:MSG=0;255;3;0;2;
357048 GWT:RFC:MSG=0;255;3;0;2;
366948 GWT:RFC:MSG=0;255;3;0;2;
377056 GWT:RFC:MSG=0;255;3;0;2;
387163 GWT:RFC:MSG=0;255;3;0;2;
397270 GWT:RFC:MSG=0;255;3;0;2;
407377 GWT:RFC:MSG=0;255;3;0;2;
417485 GWT:RFC:MSG=0;255;3;0;2;
427592 GWT:RFC:MSG=0;255;3;0;2;
437701 GWT:RFC:MSG=0;255;3;0;2;
447807 GWT:RFC:MSG=0;255;3;0;2;
457916 GWT:RFC:MSG=0;255;3;0;2;
468024 GWT:RFC:MSG=0;255;3;0;2;
478131 GWT:RFC:MSG=0;255;3;0;2;
488238 GWT:RFC:MSG=0;255;3;0;2;
498345 GWT:RFC:MSG=0;255;3;0;2;

My HA Core reads:

default_config:

# Text to speech
tts:
  - platform: google_translate

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
http:
  ssl_certificate: /var/homeassistant/.homeassistant/server.pem
  ssl_key: /var/homeassistant/.homeassistant/server.key

#map:

geo_location:
  - platform: geo_json_events
    url: https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_day.geojson


mysensors:
  gateways:
    - device: '192.168.80.9'

Home Assistant Core log shows the following:

Jun 18 13:12:43 wolke.com.br hass[22372]: 2020-06-18 13:12:43 ERROR (MainThread) [mysensors.gateway_tcp] Failed to connect to socket at ('192.168.80.9', 5003)
Jun 18 13:12:56 wolke.com.br hass[22372]: 2020-06-18 13:12:56 ERROR (MainThread) [mysensors.gateway_tcp] Failed to connect to socket at ('192.168.80.9', 5003)
Jun 18 13:13:09 wolke.com.br hass[22372]: 2020-06-18 13:13:09 ERROR (MainThread) [mysensors.gateway_tcp] Failed to connect to socket at ('192.168.80.9', 5003)
Jun 18 13:13:22 wolke.com.br hass[22372]: 2020-06-18 13:13:22 ERROR (MainThread) [mysensors.gateway_tcp] Failed to connect to socket at ('192.168.80.9', 5003)
Jun 18 13:13:35 wolke.br hass[22372]: 2020-06-18 13:13:35 ERROR (MainThread) [mysensors.gateway_tcp] Failed to connect to socket at ('192.168.80.9', 5003)
Jun 18 13:13:48 wolke.com.br hass[22372]: 2020-06-18 13:13:48 ERROR (MainThread) [mysensors.gateway_tcp] Failed to connect to socket at ('192.168.80.9', 5003)
Jun 18 13:14:01 wolke.com.br hass[22372]: 2020-06-18 13:14:01 ERROR (MainThread) [mysensors.gateway_tcp] Failed to connect to socket at ('192.168.80.9', 5003)
Jun 18 13:14:14 wolke.com.br hass[22372]: 2020-06-18 13:14:14 ERROR (MainThread) [mysensors.gateway_tcp] Failed to connect to socket at ('192.168.80.9', 5003)
Jun 18 13:14:27 wolke.com.br hass[22372]: 2020-06-18 13:14:27 ERROR (MainThread) [mysensors.gateway_tcp] Failed to connect to socket at ('192.168.80.9', 5003)
Jun 18 13:14:40 wolke.com.br hass[22372]: 2020-06-18 13:14:40 ERROR (MainThread) [mysensors.gateway_tcp] Failed to connect to socket at ('192.168.80.9', 5003)

Any hint why mysensors gateway does not speak with HA?

Thx in advance for any help.

1 post - 1 participant

Read full topic

Automated notifications for multiple zones

$
0
0

I’d like to have automation that sends a notification when I enter a zone.

Currently I have the below, which works for 1 zone.

Assume I have zone.one, zone.two, zone.three, what I’d like to do is to add the additional zones and have a dynamic notification instead of 3 scripts (one per zone)

I can’t quite work out how to pass multiple zones, and have this appear in the notification?

- id: 'Entering Zone'
  alias: Notification when entering Zone
  description: ''
  trigger:
  - entity_id: device_tracker.iphone
    event: enter
    platform: zone
    zone: zone.one
  condition: []
  action:
  - data:
      message: You're entering {{ state_attr('zone.one', 'friendly_name') }}
      title: Zone Notification
    service: notify.mobile_app_iphone

1 post - 1 participant

Read full topic

Share your project help

$
0
0

Hello,
I came across this example and it was love from first sight:

I would like to implement it, but don’t know where to start?..
Any help or is there a guide I can read?

1 post - 1 participant

Read full topic

Aeotec ZWA021 TRV reports valve open percentage, but no associated entity or state - how to access the data?

$
0
0

Hi all,

I’m running Home Assistant in Docker on UnRaid, using the Zwave integration. I’ve installed an Aeotec ZWA021 TRV, which (configurably) reports the valve open percentage as a SwitchMultiLevel; I can see the reports in my zwave log:

2020-06-18 14:38:53.765 Detail,
2020-06-18 14:38:53.765 Info, Node011, Received SwitchMultiLevel report: level=44
2020-06-18 14:38:53.765 Detail, Node011, Refreshed Value: old value=34, new value=44, type=byte
2020-06-18 14:38:53.766 Detail, Node011, Changes to this value are not verified
2020-06-18 14:38:53.766 Detail, Node011, Notification: ValueChanged

However, I can’t find any attributes or states which report this data within Home Assistant, and I want to use it in automations.

So, the questions I can think of:

  1. The ZWA021 is supported in OpenZWave (https://github.com/OpenZWave/open-zwave/pull/2051) but I don’t know if it’s supported in the ZWave integration. Is there a way that I can check?

  2. If it’s not supported, is there any way I can access the data via Home Assistant, or do I just have to wait for support to be added?

  3. Are there any other likely causes of this problem that I should look into before concluding that it’s down to the Zwave integration?

If anyone can think of any other questions I should have asked, please do answer them! :smiley:

1 post - 1 participant

Read full topic

Button to turn on/off automations

$
0
0

I would like to program a button on my home assistant that turns on and off some automations.

I have a house that from time to time i need to turn off automations when i am away and turn them back on when i am coming back. Is there a way to have a button that says ‘activated’ when i toggle the button and turn on all automations and ‘deactivated’ when i toggle the button to turn them off…

entity_id: automation.lights
entity_id: automation.water
entity_id: automation.heating

I currently have 3 automations that i would like to toggle on and off.

Kind regards

1 post - 1 participant

Read full topic


Using sensor state in email notification

$
0
0

Struggling with the syntax for this, caonfig is always invalid. Searched but can’t find documentation or examples. It works without the bolded data item. I see examples for image data, but not text. When I eliminate the data: itema dn try to put the IP in the message, I cannot get that to work either. Help with the YAML syntax would be appreciated.

  • alias: Email notification if public IP changes
    description: ‘’
    trigger:
    platform: state
    entity_id: sensor.crystal_public_IP
    from: ‘’
    to: ‘’
    for: ‘’
    action:
    • data:
      message: ‘Public IP address has changed’
      title: ‘HASS.IO public IP change’
      data: 'IP has changed to {state_attr(‘sensor.crystal_public_IP’, ‘state’)}'
      service: notify.gmail
      id: 8996a3ec66184a268a397250ab52fdd9

1 post - 1 participant

Read full topic

Export ITC-308 Current Temperature as JSON to URL

$
0
0

Hi all.

I’m currently trying to make better use of my InkBird ITC-308 WiFi.

My goal is for my Brewing app “Brewfather” to import a JSON File with the current temperature of the ITC-308 every 15 minutes.

Steps Done:
Installed Home Assistant with Docker on a Windows machine running Docker for Windows.
The setup seems to work as intended, as i can reach the site fine.
I’ve also successfully added the ITC-308 to Tuya, and in turn added it to Home Assistant with no issues so far.

Last obstacle to overcome now is export the current state of the ITC-308 as JSON every 15 minutes to a set URL.

I’d love some assistance with this last problem if anyone could :slight_smile:

1 post - 1 participant

Read full topic

Automation problem with OR condition

$
0
0

Hello,

I have problem with automation and the “or” condition.
As soon as I add the “or” condition the automation doesn’t work anymore…
I think it’s a shame to create 2 automations for the same effect.

Here’s my code:

- id: '234733237875'
  alias: '[Alarme] Déclencher alarme control panel'
  trigger:
  - entity_id: binary_sensor.door_garage
    from: 'off'
    platform: state
    to: 'on'
  condition:
  - condition: state
    entity_id: alarm_control_panel.maison
    state: armed_away
  - condition: or
    conditions:
    - condition: state
      entity_id: alarm_control_panel.maison
      state: armed-home
  action:
  - data:
      entity_id: alarm_control_panel.maison
    entity_id: alarm_control_panel.maison
    service: alarm_control_panel.alarm_trigger

Thank you for your help

1 post - 1 participant

Read full topic

Logbook missing entries that are in the database

$
0
0

I’m using MariaDB as my database in my HassOS/Supervised HA install (0.111.4 currently), and I’m trying to understand why some of my entities’ state changes aren’t showing up in my logbook. In this case, I’m focusing on an MQTT template sensor defined like this:

- platform: mqtt
  state_topic: 'monitor/fr-beacon/iphone'
  value_template: '{{ value_json.confidence }}'
  unit_of_measurement: '%'
  name: 'iphone_fr'

My recorder: integration is set up like this:

db_url: mysql://xx:xxx@core-mariadb/homeassistant?charset=utf8
purge_keep_days: 5
exclude:
  domains:
    - automation
    - weblink
    - updater
    - zwave
    - media_player
    - script
    - weather
    - light
    - switch
  entities:
    - sun.sun
    - sensor.date
    - sensor.time
....

There are lots of other excluded entities below, but not sensor.iphone_fr.

history: and logbook: are enabled via default_config: without being explicitly called out in my configuration.yaml.

I expect sensor.iphone_fr to be recorded by default (I only exclude other entities) and I see them in my MariaDB “states” table:

MariaDB [homeassistant]> select * from states where entity_id = 'sensor.iphone_fr';
+----------+--------+------------------+-------+-----------------------------------------------------------------------------------------------+----------+---------------------+---------------------+---------------------+----------------------------------+-----------------+
| state_id | domain | entity_id        | state | attributes                                                                                    | event_id | last_changed        | last_updated        | created             | context_id                       | context_user_id |
+----------+--------+------------------+-------+-----------------------------------------------------------------------------------------------+----------+---------------------+---------------------+---------------------+----------------------------------+-----------------+
|  2832269 | sensor | sensor.iphone_fr | 90    | {"unit_of_measurement": "%", "friendly_name": "iphone_fr", "device_class": "signal_strength"} |  3552356 | 2020-06-18 18:00:08 | 2020-06-18 18:00:08 | 2020-06-18 18:00:08 | 82ae3afa3d1d4e67af384b3bbc1d9d9e | NULL            |
|  2832274 | sensor | sensor.iphone_fr | 100   | {"unit_of_measurement": "%", "friendly_name": "iphone_fr", "device_class": "signal_strength"} |  3552361 | 2020-06-18 18:00:14 | 2020-06-18 18:00:14 | 2020-06-18 18:00:14 | 2fd42f465b4d433dba4549c050651c57 | NULL            |
|  2832867 | sensor | sensor.iphone_fr | 90    | {"unit_of_measurement": "%", "friendly_name": "iphone_fr", "device_class": "signal_strength"} |  3552960 | 2020-06-18 18:10:08 | 2020-06-18 18:10:08 | 2020-06-18 18:10:08 | 2fa528a430564eb4888c950000b3983e | NULL            |
|  2832871 | sensor | sensor.iphone_fr | 45    | {"unit_of_measurement": "%", "friendly_name": "iphone_fr", "device_class": "signal_strength"} |  3552964 | 2020-06-18 18:10:14 | 2020-06-18 18:10:14 | 2020-06-18 18:10:14 | ff8ce7686d154bbfafd533d6acd89ca9 | NULL            |
|  2832873 | sensor | sensor.iphone_fr | 0     | {"unit_of_measurement": "%", "friendly_name": "iphone_fr", "device_class": "signal_strength"} |  3552966 | 2020-06-18 18:10:15 | 2020-06-18 18:10:15 | 2020-06-18 18:10:15 | c7683ae1ad0a411f8b0f339a621d253c | NULL            |
|  2832945 | sensor | sensor.iphone_fr | 100   | {"unit_of_measurement": "%", "friendly_name": "iphone_fr", "device_class": "signal_strength"} |  3553038 | 2020-06-18 18:11:20 | 2020-06-18 18:11:20 | 2020-06-18 18:11:20 | 05bb9fc77dbd442db32d5d7386c30bf4 | NULL            |
|  2833132 | sensor | sensor.iphone_fr | 90    | {"unit_of_measurement": "%", "friendly_name": "iphone_fr", "device_class": "signal_strength"} |  3553226 | 2020-06-18 18:14:28 | 2020-06-18 18:14:28 | 2020-06-18 18:14:28 | 312048387d1a49e0ad9b1b560ca5bdb4 | NULL            |
|  2833142 | sensor | sensor.iphone_fr | 45    | {"unit_of_measurement": "%", "friendly_name": "iphone_fr", "device_class": "signal_strength"} |  3553236 | 2020-06-18 18:14:35 | 2020-06-18 18:14:35 | 2020-06-18 18:14:35 | 0773949ea451481081c87d9bae83430f | NULL            |
|  2833145 | sensor | sensor.iphone_fr | 0     | {"unit_of_measurement": "%", "friendly_name": "iphone_fr", "device_class": "signal_strength"} |  3553239 | 2020-06-18 18:14:38 | 2020-06-18 18:14:38 | 2020-06-18 18:14:38 | 8b20164fdb564a6ab7e1ac2bba117b90 | NULL            |
|  2833204 | sensor | sensor.iphone_fr | 100   | {"unit_of_measurement": "%", "friendly_name": "iphone_fr", "device_class": "signal_strength"} |  3553298 | 2020-06-18 18:15:45 | 2020-06-18 18:15:45 | 2020-06-18 18:15:45 | ddf9a27d908a4d999338a0df82316d45 | NULL            |
+----------+--------+------------------+-------+-----------------------------------------------------------------------------------------------+----------+---------------------+---------------------+---------------------+----------------------------------+-----------------+
10 rows in set (0.001 sec)

You can see the state changing from time to time for sensor.iphone_fr, where last_changed == last_updated.

I can see the state changing in the history tab:

image

image

But I get “No logbook entries found.” when I pull down the Entity drop-down and select sensor.iphone_fr. The very fact that it shows up in the entity dropdown tells me that it knows about it, but seems to be filtering it out of the list for some reason. Changing the duration from 1 to 3 to 7 days doesn’t help.

Anyone know why?

1 post - 1 participant

Read full topic

Presence Notification Automation

$
0
0

Hey, I’ve had this automation for a while not and its just stopped working and i don’t remember changing anything.

Below is the yaml and the error. Help would be appreciated.

Thanks

#April just changed state
  - id: 'april_changed'
    alias: April Changed Notification
    trigger:
      platform: state
      entity_id: person.april
    condition:
      condition: template
      value_template: '{{ trigger.from_state.state != trigger.to_state.state }}'
    action:
    - service: notify.mobile_app_stephen_s20
      data:
        title: April just changed from {{ trigger.from_state.state }} to {{ trigger.to_state.state }}.
        message: ''
        data:
          clickAction: /lovelace/device_tracking
    - service: notify.alexa_media
      data_template:
        target: 
          - media_player.everywhere_echo
        data:
          type: announce
        message: April just changed from {{ trigger.from_state.state }} to {{ trigger.to_state.state }}.
2020-06-18 19:47:44 ERROR (MainThread) [homeassistant.components.automation] April Changed Notification: Error executing script. Error rendering template for call_service at pos 1: UndefinedError: 'trigger' is undefined

10 posts - 3 participants

Read full topic

Viewing all 108407 articles
Browse latest View live


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