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

Unable to link Google Assistant

$
0
0

Hi all,

In the past my HA was linked to Google Assistant,
didn’t use it for long period of time and tried it once again yesterday, without any luck…

Nabu Case cloud

I get the following error:
[hass_nabucasa.cloud_api] Fetched https://remotestate.nabucasa.com/request_sync (404)

Tried to follow any possible article still didn’t manage to fix it, after adding it through the Google Home I get not link.

Steps:

  1. Set up the component within configuration YAML,
  2. Opened the Google Home app to add integration
  3. Logged in to Nabu Casa
  4. Approved the consent screen to link the app
  5. Went back to HA cloud settings
  6. In Google Home - not integration connected
  7. In Google Linked Account - I see a well-integrated Hass.io 3rd party at the time I linked it
  8. Clicking “Sync Entities to Google” results:
Google Assistant is not activated
Before you can use Google Assistant, you need to activate the Home Assistant Cloud skill for Google Assistant in the Google Home app.
  1. Error in HA logs as the above.

Google Assistant

Same goes here, followed the guide of how to add the integration,
getting the same result - cannot link the HA to Google Home.

Within Google Home the integration is not being added,
in HA I see logs that the integration is being synced with error:

DEBUG (MainThread) [homeassistant.components.google_assistant.http] Response on https://homegraph.googleapis.com/v1/devices:reportStateAndNotification with data {'requestId': 'abc', 'agentUserId': '55bff554ff5a4ad091d7cd84844072be', 'payload': {'devices': {'states': {'switch.abc': {'online': True, 'on': False}}}}} was {
 "error": {
   "code": 404,
   "message": "Requested entity was not found.",
   "status": "NOT_FOUND"
  }
}
ERROR (MainThread) [homeassistant.components.google_assistant.http] Request for https://homegraph.googleapis.com/v1/devices:reportStateAndNotification failed: 404

In Google Cloud logs there is an error:

{
  "textPayload": "SYNC: Request ID aaa update devices failed: CANCELLED",
  "insertId": "k9bpbgfsa4osa",
  "resource": {
    "type": "assistant_action",
    "labels": {
      "action_id": "SMART_HOME_SYNC",
      "version_id": "",
      "project_id": "PROJECTID"
    }
  },
  "timestamp": "2022-05-07T06:36:19.399679759Z",
  "severity": "ERROR",
  "logName": "projects/PROJECTID/logs/actions.googleapis.com%2Factions",
  "receiveTimestamp": "2022-05-07T06:36:19.406135231Z"
}

When it didn’t work with the previous Google Project I set up a new one, same result…

Both itnergations
tried to reduce the number of entities being synced and their domains.

What am I doing wrong?

1 post - 1 participant

Read full topic


Error 400 (err

$
0
0

Hi
im trying to connect my gui across the internet i get 400 bad request I’m running it through a proxy manger ( Nginx Proxy Manager ) so like home.doamin.nl goes to Cloudflare to the proxy to the site I tried to google what I’m getting nothing what I’m asking so I hope I get my answers here

1 post - 1 participant

Read full topic

What card is being used

$
0
0

Hi

Is someone knowing what kind of card is used here? I found this photo on Fb, saved it… But cant find it anymore now

1 post - 1 participant

Read full topic

How to break down electricity consumption by device using the same aggregation as for total grid

$
0
0

Hi,

I have an energy setup like this:

as you can see, I have a smart plug that is measuring the energy consumption of the fridge. In this case, it’s a meros integration, but I hope this does not matter for my question.

What I want is to be able to break down and analyze the electricity consumption by device. let’s say I want to have a similar graph/functionality as for “total electricity” but just for the smart plug. In this way, I can see what is the daily, weekly consumption of my fridge over time, and can detect if there are deviations.

the use case: My previous fridge started to consume more than usual, it was a gradual process, but we replaced it once it was consuming double the amount of energy as it was usually consuming before.

can this be done in HA?

thanks

1 post - 1 participant

Read full topic

Automation does not run

$
0
0

This is driving me insane!
The idea is to turn on a fan if the humidity is too high. (I am using the “choose” action, as there will eventually be more triggers added.)
The switch works when toggled manually and the humidity sensor shows the correct value.
But for some reason, the automation does not turn on the fan.
What could be wrong?

id: '1651904268154'
alias: Bathroom:Fan_control
description: ''
trigger:
  - platform: numeric_state
    entity_id: sensor.humidity
    id: too_humid
    above: '70.0'
condition: []
action:
  - choose:
      - conditions:
          - condition: trigger
            id: too_humid
        sequence:
          - service: switch.turn_on
            data: {}
            target:
              entity_id: switch.shelly_plug_s_relay_0
    default: []
mode: single

1 post - 1 participant

Read full topic

System time does not match log or local time

$
0
0

So this has been an issue for a long time for me. It’s not a particularly serious one, but it annoys me. My system time is an hour behind the actual time, which means that any time based automations fire an hour late. Meanwhile, the timestamps on my logs are actually correct. Is there a solution for this somewhere?

I’m currently running 2022.4.7 on a raspberry pi 3b

1 post - 1 participant

Read full topic

Lost all zigbee routers, direct attached working

$
0
0

Hi so I have been stable for some time and just found that only a very few zigbee devices are working, logs and the z2mqtt map suggests the coordinator is no longer communicating with ANY routers:

I dont think I changed anything relevant.
Since this happened I have removed and reinserted the coordinator, Restarted HA (VM on unraid)

Home Assistant Core 2022.5.1

Home Assistant Supervisor 2022.05.0

Home Assistant OS 7.6

Kernel version 5.10.108

Agent version 1.2.1

Zigbee2mqtt version: 1.18.1-1

Any tips?

1 post - 1 participant

Read full topic

Cant seem to run ssh script as a service

$
0
0

Hi all. im trying to execute a shell command to make my MBP go to sleep via a script in HAS. i have successfully setup ssh and created a script in bash to sleep the mac and it works really well. (also made the script executable)

now im trying to follow the HAS guide on shell commands (Shell Command - Home Assistant) yet for the life of me cant get it to work

i have setup the command in config.yaml

shell_command:
  mac_sleep: bash /root/config/scripts/office_mac_sleep.sh

and then i try to call that service yet nothing happens, logs say it ran. any clue?

1 post - 1 participant

Read full topic


All config files and folders not visible from file editor and studio code server

$
0
0

Dear all
I don’t know why but I am not able to see the folders and files in both file editor and studio code server.

Firstly, I wanted to upload a picture in the shared folder via SMB and the only folder which was not accessible was the config folder. All others could be opened. The error message from windows is “you do not have permission to access…”

So I decided to upload via file editor. I was surprised to see that no folder and files were visible from it.

I also tried to use studio code server and I was not able to see any file/folder.

So I am in a situation where I cannot edit any yaml file.

Is someone already fix a similar issue? A far as I can remember, I didn’t change anything in the config. The only thing I did was the last update 2022.5.2. I had to roll back to the last backup as zwave JS didn’t work anymore after this update.

Thank you for your help.

SD

1 post - 1 participant

Read full topic

Reolink RLC-811a video feed timeout - thumbnail works?

$
0
0

I’ve just installed a Reolink RLC-811a and am trying to get a video feed in my HA.

  • I can access its features using the Reolink HACS integration (siren, spotlight …)
  • When adding the camera entity in an entities card, the thumbnail is generated
  • When trying to view the actual feed, I get a timeout
  • Tried using WebRTC and ONVIF and same issues
  • the user/pw must be correct otherwise I wouldn’t be able to toggle the siren for example
  • I’m running HA in a docker container
  • I’m running HA behind a nginx reverse proxy
  • Both using local LAN ip (bypassing nginx) and public, I get timeouts
  • Using the Reolink phone app, it works fine

It looks like HA is unable to access the video stream, has anyone run into the same issues before or have an idea why it’s not working?

1 post - 1 participant

Read full topic

Automation: template value should be a string for dictionary value @ data['value_template']. Got None

$
0
0

A condition in my automation gives errors and I cannot understand what is wrong with it.

condition: template
value_template: >-
  {{(states('sensor.maxtemp24h') | float -
  states('input_number.some_variabele') | float)>0}}

My intention was to only do the action part if sensor.max24h minus input_number.some_variable is greater than 0.
Whenever I put in the jinja template in the template section of the developer tools I get a true as a outcome. So in my opinion this should work…

The error I get is :

Error occurred while testing condition
template value should be a string for dictionary value @ data['value_template']. Got None 

Any ideas ?

5 posts - 3 participants

Read full topic

New MQTT topics are not shown in Home Assistant

$
0
0

Hi,

I’m new to Home Assistant and I’ve tried to find relevant parts in the documentation but failed to help myself. I assumed that any new MQTT topic gets visible in Home Assistant as long as “discovery” is enabled (which it is).

Unfortunately, I’ve failed to configure a Gardena R40Li mower as well as a CO2 logger to provide data via MQTT to HA. The data is visible in mosquitto (as shown below) but HA isn’t reporting any more device or visualized their data other than the one device that was present and set up during HA setup, a smart-meter data provider.

MQTT>HA working: smart-meter data provider.

MQTT>HA not working: Gardena R40Li via Robonect (URL removed due to Forum limitation to 2 URLs per post for me) and CO2 logger from Unraveltec (URL removed due to Forum limitation to 2 URLs per post for me).

I can use MQTT > “Listen to a topic” for all three devices with many topics each. For example when listening to co2lampel2/sensors/SCD30/gas (Unraveltec CO2) I get:

{
    "tags": {
        "interval_s": 2,
        "id": "i2c-1_0x61",
        "ASC": "yes"
    },
    "values": {
        "CO2_ppm": 509.73,
        "sensor_degC": 38.8,
        "H2O_gpm3": 9.43
    },
    "UTS": 1651924458.838
}

QoS: 0 - Retain: false

Listening to R40Li/wlan/rssi (Robonect):

-81

QoS: 0 - Retain: true 

For the already working smart-meter I need to listen to SHRDZM/AC0BFBxxxx/AC0BFBxxxx/sensor to get:

{
    "timestamp": "2022-05-07T15:26:01",
    "1.8.0": "8051506",
    "1.8.1": "5376438",
    "1.8.2": "2675068",
    "1.7.0": "421",
    "2.8.0": "0",
    "2.8.1": "0",
    "2.8.2": "0",
    "2.7.0": "0",
    "3.8.0": "3354277",
    "3.8.1": "1922946",
    "3.8.2": "1431331",
    "3.7.0": "0",
    "4.8.0": "2156253",
    "4.8.1": "1476048",
    "4.8.2": "48",
    "4.7.0": "303",
    "uptime": "0008:16:47:51"
}

QoS: 0 - Retain: false 

From the documentation on (URL removed due to Forum limitation to 2 URLs per post for me) and (URL removed due to Forum limitation to 2 URLs per post for me) I could not determine if my assumption is really true (everything that gets sent to MQTT is shown in HA as a new device with its values) or if my two devices do need manual configuration. If they do need manual configuration, I could not find out how to accomplish this myself.

For Robonect, I also tried this manual configuration which resulted in errors when I restart HA. Details on https://paste.grml.org/3485/

Thanks for any hints!

System information:

Setup via Docker on a Xubuntu 20.04 LTS on an AMD Ryzen x86 hardware:

System Health

version: core-2022.4.7
installation_type: Home Assistant Container
dev: false
hassio: false
docker: true
user: root
virtualenv: false
python_version: 3.9.9
os_name: Linux
os_version: 5.15.26-051526-generic
arch: x86_64
timezone: Europe/Vienna

logged_in: false
can_reach_cert_server: ok
can_reach_cloud_auth: ok
can_reach_cloud: ok

dashboards: 1
resources: 0
views: 2
mode: storage

2 posts - 2 participants

Read full topic

Need help with history_stats after update

$
0
0

Prior to 2022.5 I had an automation that told me how long the heating had run for that day.

alias: Heating Runtime Notification
description: ''
trigger:
  - platform: time
    at: '23:59'
condition:
  - condition: numeric_state
    entity_id: sensor.heating_run_time_today
    above: '0'
action:
  - service: notify.tg_house_group
    data:
      title: Heating Runtime Notification
      message: >-
        Heating runtime today: {{
        state_attr('sensor.heating_run_time_today','value') }}
mode: single

This doesn’t work after the update - because the value attribute has been removed.
Does anyone have any Jinja code I can use to convert the state of this sensor back to a hh:mm format ?

 - platform: history_stats
   name: Heating Run Time Today
   entity_id: switch.house_boiler
   state: "on"
   type: time
   start: "{{ now().replace(hour=0,minute=0,second=0) }}"
   end: "{{ now() }}"

2 posts - 2 participants

Read full topic

Automation: Flash light specifiek color

$
0
0

Hi all, I am trying to get my light flashing a specific color in an automation. I am using the standard flash function in the automation. Like this:

action:
  - device_id: a2616fa36abc4784add1d3d6797f0366
    domain: light
    entity_id: light.tripod
    type: flash

I know it is possible with the turn_on function and then choose flash, bun then I have the problem that I have to configure that the lights turn off again (when it is daytime). But then they wil also turn off when it is night.

1 post - 1 participant

Read full topic

Can't load aldb for an Insteon device?

$
0
0

I have a 2477D that doesn’t seem to be responding to commands. When I use the Insteon Panel and go to the All-Link database and do a Load from Device, I get an error:

Logger: pyinsteon.managers.aldb_read_manager
Source: /usr/local/lib/python3.9/site-packages/pyinsteon/managers/aldb_read_manager.py:140
First occurred: 10:21:31 AM (1 occurrences)
Last logged: 10:21:31 AM

50.21.F0: ALDB Load error: 0xff

Is my device communication dead? I can of course, operate it. But not from HA. I THINK it responded when I first set it up when I first installed HA on my Synology Docker container because I had to go around the house and figure out which device was which address. So I probably turned the light on and off with HA to see where it was.

I also may have tried Configure add a device override on the address (hopefully, that didn’t screw it up).

1 post - 1 participant

Read full topic


This template works in Developer Tools, but not in a script. Why?

$
0
0

I have the following template in a script. When I test the template in Developer Tools, it works like I expect. But when I call it, I get an error. Is there a way to accomplish what I’m trying to do here?

The script:

service_template: |
  {% if is_state('device_tracker.frank_iphone', 'work') %}
     notify.email_frank
  {% else %}
     notify.mobile_app_frank_iphone
  {% endif %}
data: |
  {% if title is defined %}
    title: "{{ title }}"
  {% endif %}
  {% if message is defined %}
    message: "{{ message }}"
  {% endif %}
  {% if image is defined or url is defined %}
    data:
      {% if image is defined %}
        image: "{{ image }}"
      {% endif %}
      {% if url is defined %}
        url: "{{ url }}"
      {% endif %}
  {% endif %}

Example of calling it:

service: script.notify_frank_with_data
data:
  title: foo
  message: bar

The error when calling it:

2022-05-07 07:14:19 ERROR (MainThread) [homeassistant.components.script.notify_frank_with_data] notify_frank_with_data: Error executing script. Error for call_service at pos 1: Error rendering data template: Result is not a Dictionary
2022-05-07 07:14:19 ERROR (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Error executing script. Error for call_service at pos 1: Error rendering data template: Result is not a Dictionary
2022-05-07 07:14:19 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139955239246912] Error handling message: Error rendering data template: Result is not a Dictionary (unknown_error)

3 posts - 2 participants

Read full topic

Notification Automatic snapshots from cameras are sometimes old or not sent

$
0
0

I’m using this blueprint Auto Snapshots on Motion · GitHub to send camera notifications on motion.

I have 3 Nest cameras connected via the official integration and 4 BlueIris cameras via the HACS integration.

After a fresh restart of HA everything works great for “a while” generally half a day or so. After that it becomes very hit and miss on if the notification actually sends an image and if that image is from the time of the event or from hours beforehand.

I have PreLoad Stream checked for all cameras but looking into the logs I see regular stream errors:

Ex for Blue Iris camera:

2022-05-06 22:31:47 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new camera.blueiris entity: camera.blueiris_driveway
2022-05-06 22:39:54 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.blueiris_driveway] Error from stream worker: Stream ended; no additional packets
2022-05-06 22:40:34 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.blueiris_driveway] Error from stream worker: Error opening stream (EXIT, Immediate exit requested) http://blueiris.example.com/h264/driveway-cam/temp.m3u8?session=0adeadbeefdeadbeefdeadbeefdeadbe
2022-05-06 22:41:24 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.blueiris_driveway] Error from stream worker: Error opening stream (EXIT, Immediate exit requested) http://blueiris.example.com/h264/driveway-cam/temp.m3u8?session=0adeadbeefdeadbeefdeadbeefdeadbe
2022-05-06 22:42:24 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.blueiris_driveway] Error from stream worker: Error opening stream (EXIT, Immediate exit requested) http://blueiris.example.com/h264/driveway-cam/temp.m3u8?session=0adeadbeefdeadbeefdeadbeefdeadbe
2022-05-06 22:43:34 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.blueiris_driveway] Error from stream worker: Error opening stream (EXIT, Immediate exit requested) http://blueiris.example.com/h264/driveway-cam/temp.m3u8?session=0adeadbeefdeadbeefdeadbeefdeadbe
2022-05-06 22:44:54 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.blueiris_driveway] Error from stream worker: Error opening stream (EXIT, Immediate exit requested) http://blueiris.example.com/h264/driveway-cam/temp.m3u8?session=0adeadbeefdeadbeefdeadbeefdeadbe
2022-05-06 22:45:54 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.blueiris_driveway] Error from stream worker: Error opening stream (ERRORTYPE_111, Connection refused) http://blueiris.example.com/h264/driveway-cam/temp.m3u8?session=0adeadbeefdeadbeefdeadbeefdeadbe
2022-05-07 00:36:49 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.blueiris_driveway] Error from stream worker: Stream ended; no additional packets
2022-05-07 00:53:11 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.blueiris_driveway] Error from stream worker: Error demuxing stream: [Errno 1414092869] Immediate exit requested: 'http://blueiris.example.com/h264/driveway-cam/temp.m3u8?session=0adeadbeefdeadbeefdeadbeefdeadbe'
2022-05-07 07:04:02 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.blueiris_driveway] Error from stream worker: Stream ended; no additional packets

Ex for Nest cam:

2022-05-06 22:13:57 INFO (MainThread) [homeassistant.components.automation.motion_camera_front_porch] Initialized trigger Motion Camera - Front Porch
2022-05-06 22:13:58 INFO (MainThread) [homeassistant.components.stream.stream.camera.front_porch_doorbell] Started stream: rtsps://stream-us1-bravo-ft.dropcam.com:443/sdm_live_stream/BigRandomString?auth=****
2022-05-07 02:00:15 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.front_porch_doorbell] Error from stream worker: Error opening stream (HTTP_NOT_FOUND, Server returned 404 Not Found) rtsps://stream-us1-bravo-ft.dropcam.com:443/sdm_live_stream/BigRandomString?auth=****
2022-05-07 02:40:35 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.front_porch_doorbell] Error from stream worker: Stream has no video
2022-05-07 03:21:13 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.front_porch_doorbell] Error from stream worker: Error opening stream (HTTP_NOT_FOUND, Server returned 404 Not Found) rtsps://stream-us1-bravo-ft.dropcam.com:443/sdm_live_stream/BigRandomString?auth=****
2022-05-07 03:48:17 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.front_porch_doorbell] Error from stream worker: Error opening stream (HTTP_NOT_FOUND, Server returned 404 Not Found) rtsps://stream-us1-bravo-ft.dropcam.com:443/sdm_live_stream/BigRandomString?auth=****
2022-05-07 03:48:38 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.front_porch_doorbell] Error from stream worker: Error opening stream (HTTP_NOT_FOUND, Server returned 404 Not Found) rtsps://stream-us1-bravo-ft.dropcam.com:443/sdm_live_stream/BigRandomString?auth=****
2022-05-07 03:49:11 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.front_porch_doorbell] Error from stream worker: Error opening stream (HTTP_NOT_FOUND, Server returned 404 Not Found) rtsps://stream-us1-bravo-ft.dropcam.com:443/sdm_live_stream/BigRandomString?auth=****
2022-05-07 03:49:53 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.front_porch_doorbell] Error from stream worker: Error opening stream (HTTP_NOT_FOUND, Server returned 404 Not Found) rtsps://stream-us1-bravo-ft.dropcam.com:443/sdm_live_stream/BigRandomString?auth=****
2022-05-07 03:50:45 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.front_porch_doorbell] Error from stream worker: Error opening stream (HTTP_NOT_FOUND, Server returned 404 Not Found) rtsps://stream-us1-bravo-ft.dropcam.com:443/sdm_live_stream/BigRandomString?auth=****
2022-05-07 03:51:45 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.front_porch_doorbell] Error from stream worker: Error opening stream (HTTP_NOT_FOUND, Server returned 404 Not Found) rtsps://stream-us1-bravo-ft.dropcam.com:443/sdm_live_stream/BigRandomString?auth=****
2022-05-07 07:46:17 INFO (MainThread) [homeassistant.components.automation.motion_camera_front_porch] Motion Camera - Front Porch: Running automation actions
2022-05-07 07:46:17 INFO (MainThread) [homeassistant.components.automation.motion_camera_front_porch] Motion Camera - Front Porch: Executing step delay 0:00:00
2022-05-07 07:46:17 INFO (MainThread) [homeassistant.components.automation.motion_camera_front_porch] Motion Camera - Front Porch: Executing step device automation
2022-05-07 07:46:17 INFO (MainThread) [homeassistant.components.automation.motion_camera_front_porch] Motion Camera - Front Porch: Executing step delay 0:00:05
2022-05-07 07:46:18 INFO (MainThread) [homeassistant.components.stream.stream.camera.front_porch_doorbell] Started stream: rtsps://stream-us1-bravo-ft.dropcam.com:443/sdm_live_stream/BigRandomString?auth=****

So maybe the question is: Am I doing something wrong with how I handle cameras in general or am I just happening to hit similar issues in both BlueIris and Nest?

2 posts - 1 participant

Read full topic

IKEA TRADFRI shortcut and STYRBAR remote not working with Sonoff Zigbee 3.0 dongle plus

$
0
0

I have 5 of these shortcut buttons. Two of them show up fine. They have a battery showing it’s charge and work as buttons in ZHA using a sonoff 3.0 plus dongle.
The other 3 pair but show a battery with a ? On it and don’t work.
I also have two STYRBAR remotes and they are the same. Paired but not working.

I then have a TRADFRE on/off and that works fine.

I tried swapping the Sonoff to a conbee II and all the shortcut buttons paired and worked but they’d fire the action twice 9/10 times.
The STUTBARs didn’t work

I’ve gone back to the sonoff now but don’t know why these 3 buttons just don’t want to work. The conbee II proves they can work.
Any idea what I can do to them?

I tried sending the OTA update but it just showed a red error when I pressed the button for it.

I’m running the latest Ha on a pi4 on a m2. The dongles are in a usb 2 extension cable.
I also tried swapping the Sonoff antenna and setting up the buttons next to the dongle.
There are no other WiFi devices near and my WiFi runs on channel 11 while I’m guessing the zigbee is on the default 15.

The fact the buttons work with the conbee makes me wonder what is going on with these 3 buttons?

1 post - 1 participant

Read full topic

Shopping List Int

$
0
0

+1 on the ability to have multiple shopping lists. The shopping list feature is great but limiting it to a single list makes it hard to justify using it when I have a requirement for two or three lists.

1 post - 1 participant

Read full topic

Invalid config when using not condition (short hand) with new if-then in scripts

$
0
0

Trying to incorporate the new if-then syntax with the new short form for not conditions and I get this Invalid config message:

Logger: homeassistant.config
Source: config.py:454
First occurred: 10:03:31 AM (1 occurrences)
Last logged: 10:03:31 AM

Invalid config for [script]: Unexpected value for condition: 'OrderedDict([('not', [OrderedDict([('condition', 'state'), ('entity_id', 'person.person1'), ('state', 'home')]), OrderedDict([('condition', 'state'), ('entity_id', 'sensor.person1_iphone_11_battery_state'), ('state', 'Charging')]), OrderedDict([('condition', 'numeric_state'), ('entity_id', 'sensor.person1_iphone_11_battery_level'), ('above', 10)])])])'. Expected and, device, not, numeric_state, or, state, sun, template, time, trigger, zone @ data['sequence'][1]['if'][0]. Got None. (See ?, line ?).

Here’s the script:

        - if:
            - condition:
                not:
                  - condition: state
                    entity_id: person.person1
                    state: home
                  - condition: state
                    entity_id: sensor.person1_iphone_11_battery_state
                    state: 'Charging'
                  - condition: numeric_state
                    entity_id: sensor.person1_iphone_11_battery_level
                    above: 10
          then:
            - service: notify.TEXT_PERSON1
              data:
                message: "Your Phone is Low.  STOP RECORDING STUFF and Turn It Off, Till you are ready to Come HOME"

1 post - 1 participant

Read full topic

Viewing all 108497 articles
Browse latest View live


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