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

Error with Home/Away status - please help

$
0
0

Hello,

I just wanted to implement device_tracking in my HA, for this I added the following to configuration_yaml:

i saved the file and wanted to restart HA, but unfortunately i get the following error message directly:

Logger: homeassistant.components.websocket_api.http.connection
Source: components/homeassistant/init.py:170
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 17:31:08 (4 occurrences)
Last logged: 17:43:57

[140460952360944] The system cannot restart because the configuration is not valid: Invalid config for [device_tracker.ping]: [Soravis_mi10] is an invalid option for [device_tracker.ping]. Check: device_tracker.ping->hosts->Soravis_mi10. (See ?, line ?).
[140460952360944] The system cannot restart because the configuration is not valid: Invalid config for [device_tracker.ping]: [host] is an invalid option for [device_tracker.ping]. Check: device_tracker.ping->host. (See ?, line ?).
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py”, line 185, in handle_call_service
await hass.services.async_call(
File “/usr/src/homeassistant/homeassistant/core.py”, line 1495, in async_call
task.result()
File “/usr/src/homeassistant/homeassistant/core.py”, line 1530, in _execute_service
await handler.job.target(service_call)
File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 733, in admin_handler
await result
File “/usr/src/homeassistant/homeassistant/components/homeassistant/init.py”, line 170, in async_handle_core_service
raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: The system cannot restart because the configuration is not valid: Invalid config for [device_tracker.ping]: [Soravis_mi10] is an invalid option for [device_tracker.ping]. Check: device_tracker.ping->hosts->Soravis_mi10. (See ?, line ?).

Unfortunately it is not possible for me to validate the configuration before restarting under Settings → General I do not have this possibility in the Core version.

What am I doing wrong?
Kind regards

1 post - 1 participant

Read full topic


Custom quirk for "DIYRuZ_AirSense"

$
0
0

Hi. My cusrom quirk for DIYRuZ_Airsense does not work after HA update.

HW: DIGI Zigbee is used as coordinator.
SW: HA version 2021.12.7

HA Log:

(MainThread) [zhaquirks] Loading custom quirks module sls
MainThread) [zhaquirks] Loading custom quirks module sls.airqmon
...
(MainThread) [zigpy.appdb] [0xbf0d:1:0x0000] Attribute id: 4 value: SLS
(MainThread) [zigpy.appdb] [0xbf0d:1:0x0000] Attribute id: 5 value: AirQMon
(MainThread) [zigpy.appdb] [0xffdc:1:0x0000] Attribute id: 4 value: eWeLink
(MainThread) [zigpy.appdb] [0xffdc:1:0x0000] Attribute id: 5 value: TH01
(MainThread) [zigpy.appdb] [0xf283:1:0x0000] Attribute id: 5 value: lumi.plug
(MainThread) [zigpy.appdb] [0xf283:1:0x0000] Attribute id: 4 value: LUMI
(MainThread) [zigpy.appdb] [0x334a:1:0x0000] Attribute id: 4 value: LUMI
(MainThread) [zigpy.appdb] [0x334a:1:0x0000] Attribute id: 5 value: lumi.sensor_wleak.aq1
....
(MainThread) [zigpy.quirks.registry] Checking quirks for SLS AirQMon (00:xx:xx:xx:xx:xx:f1:ec)
(MainThread) [zigpy.quirks.registry] Considering <class sls.airqmon.AirQMon>
...
(MainThread) [zigpy_xbee.api] _handle_explicit_rx: (00:xx:xx:xx:xx:xx:f1:ec, 0xbf0d, 1, 1026, 0, b180101000086)
(MainThread) [zigpy.zcl] [0xbf0d:1:0x0402] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=1 command_id=Command.Read_Attributes_rsp>
(MainThread) [homeassistant.components.zha.core.channels.base] [0xBF0D:1:0x0402]: finished channel initialization
(MainThread) [homeassistant.components.zha.core.channels.base] [0xBF0D:1:0x0402]: async_initialize stage succeeded
(MainThread) [homeassistant.components.zha.core.channels.base] [0xBF0D:1:0x0000]: async_initialize stage succeeded
(MainThread) [zigpy_xbee.api] Frame received: tx_status
(MainThread) [zigpy_xbee.api] tx_explicit to 0xbf0d: TXStatus.SUCCESS after 0 tries. Discovery Status: DiscoveryStatus.SUCCESS, Frame #18
(MainThread) [zigpy_xbee.api] Frame received: tx_status
(MainThread) [zigpy_xbee.api] tx_explicit to 0x2b10: TXStatus.SUCCESS after 0 tries. Discovery Status: DiscoveryStatus.SUCCESS, Frame #19
(MainThread) [zigpy_xbee.api] Frame received: explicit_rx_indicator
(MainThread) [zigpy_xbee.api] _handle_explicit_rx: (00:xx:xx:xx:xx:xx:f1:ec, 0xbf0d, 2, 1037, 0, b180201000086)
(MainThread) [zigpy.zcl] [0xbf0d:2:0x040d] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=2 command_id=Command.Read_Attributes_rsp>
(MainThread) [zigpy.appdb] Error handling _unsupported_attribute_added event with (00:xx:xx:xx:xx:xx:f1:ec, 1, 1026, 0) params: FOREIGN KEY constraint failed
(MainThread) [zigpy_xbee.api] Frame received: explicit_rx_indicator
(MainThread) [zigpy_xbee.api] _handle_explicit_rx: (00:xx:xx:xx:xx:xx:95:75, 0x2b10, 1, 6, 0, b1803010000001000)
(MainThread) [zigpy.zcl] [0x2b10:1:0x0006] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=3 command_id=Command.Read_Attributes_rsp>
...
(MainThread) [zigpy.appdb] Error handling _unsupported_attribute_added event with (00:xx:xx:xx:xx:xx:f1:ec, 2, 1037, 0) params: FOREIGN KEY constraint failed
...
(MainThread) [zigpy_xbee.api] _handle_explicit_rx: (00:xx:xx:xx:xx:xx:f1:ec, 0xbf0d, 1, 12, 0, b009a0a5500390000e8416f0018021c00420143)
(MainThread) [zigpy.zcl] [0xbf0d:1:0x000c] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=False disable_default_response=False> manufacturer=None tsn=154 command_id=Command.Report_Attributes>
(MainThread) [zigpy.zcl] [0xbf0d:1:0x000c] ZCL request 0x000a: [[Attribute(attrid=85, value=<TypeValue type=Single, value=29.0>), Attribute(attrid=111, value=<TypeValue type=bitmap8, value=bitmap8.2>), Attribute(attrid=28, value=<TypeValue type=CharacterString, value=C>)]]
(MainThread) [zigpy.zcl] [0xbf0d:1:0x000c] Attribute report received: present_value=29.0, status_flags=2, description=C
(MainThread) [zigpy_xbee.zigbee.application] Zigbee request tsn #154: b189a0b0a00
(MainThread) [zigpy_xbee.api] Command tx_explicit (00:xx:xx:xx:xx:xx:f1:ec, 0xBF0D, 1, 1, 12, 260, 0, 0, b\x18\x9a\x0b\n\x00)
(MainThread) [zigpy_xbee.api] Frame received: tx_status
(MainThread) [zigpy_xbee.api] tx_explicit to 0xbf0d: TXStatus.SUCCESS after 0 tries. Discovery Status: DiscoveryStatus.SUCCESS, Frame #44
(MainThread) [zigpy_xbee.api] Frame received: explicit_rx_indicator
(MainThread) [zigpy_xbee.api] _handle_explicit_rx: (00:xx:xx:xx:xx:xx:f1:ec, 0xbf0d, 1, 12, 0, b009b0a550039000026446f0018a91c00420370706d)
(MainThread) [zigpy.zcl] [0xbf0d:2:0x000c] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=False disable_default_response=False> manufacturer=None tsn=155 command_id=Command.Report_Attributes>
(MainThread) [zigpy.zcl] [0xbf0d:2:0x000c] ZCL request 0x000a: [[Attribute(attrid=85, value=<TypeValue type=Single, value=664.0>), Attribute(attrid=111, value=<TypeValue type=bitmap8, value=bitmap8.128|32|8|1>), Attribute(attrid=28, value=<TypeValue type=CharacterString, value=ppm>)]]
(MainThread) [zigpy.zcl] [0xbf0d:2:0x000c] Attribute report received: present_value=664.0, status_flags=169, description=ppm
(MainThread) [zigpy_xbee.zigbee.application] Zigbee request tsn #155: b189b0b0a00

1 post - 1 participant

Read full topic

How to NOT run an action if the device state is equal to or more than

$
0
0

I have an automation that turns on various accent lights around the house, including an Inovelli dimmer for the dining room. The automation runs, sets the dining light to 45 percent brightness 30 minutes before sunset and all is relatively good.

However, I grumbles from the family because sometimes they will be in the dining room working and especially on a cloudy-ish day where they’ve turned the light on to full bright before the automation has gone off.

Is there a way to set something like if dining is already at X brightness don’t change ?
Or a range of brightness: If dining is 45-100%, don’t change

Thanks!
Wayne

1 post - 1 participant

Read full topic

MQTT value_template and value_json understanding

$
0
0

I’m not understanding this section of the help page.

The example shows, the value_json.on (references the “on” in the msg?) grabs the value “true”? So I thought I would duplicate this in mine, but I get the error below.

My MQTT sensor:

  - platform: mqtt
    unique_id: '123456HomeAssistantShutDown'
    state_topic: "homeassistant/CMD/shutdown"
    value_template: "{{ value_json.cmd }}"

My MQTT payload:

{"type":"HA","cmd":"SHUTDOWN"}

When I send that msg I get this error in the logs:

Logger: homeassistant.helpers.template
Source: helpers/template.py:1791
First occurred: 12:22:40 PM (1 occurrences)
Last logged: 12:22:40 PM

Template variable error: ‘value_json’ is undefined when rendering ‘{{ value_json.type.cmd }}’

1 post - 1 participant

Read full topic

Oracle VM VirtualBox Manager periodically 'stopping' and no HA access

$
0
0

Hi All

I seem to have a problem with my setup, it seems to have happened twice now so wondering if I have done something wrong/daft…

I have an old laptop running my HA… I followed the guide on installing Oracle and then setting up HA on an Ubuntu VM.

All seems to be OK but every couple of weeks my HA stops responding… I get a settings notification on any devices running the app and a ‘cant reach this page’ error in browser for 192.168.1.103

When I login to the laptop I have two programmes running:

  1. ‘HomeAssistant [Running] - Oracle VM Virtual Box’ - in which all looks as I would expect “Welcome to the HA command line” black screen.
  2. ‘Oracle VM VirtualBox Manager’ - now this has turned into an unresponsive white window!

A restart of the laptop seemed to sort it last time but this time the process seems to have ended with the HA machine ending up with an IP address of …90 instead of the usual …103

What am i doing wrong?

1 post - 1 participant

Read full topic

How to delete integration which is in Reconfigure state

$
0
0

I have SamsungTV (built-in) integration which annoys me asking for reconfiguration every several days.
I decided to remove it from the system. But I cannot see DELETE option.
How can I remove this from HA?

image

1 post - 1 participant

Read full topic

Home assistant triggers Alexa routine

$
0
0

Hi,
I would like home assistant to trigger Alexa routine everyday at 2 pm but only when no one is at home. Can you help me with that ?
Thanks

1 post - 1 participant

Read full topic

MegaD: How to change entity (-ies) domain?

$
0
0

Hello everybody, I’m newby for HA, sorry.
And I read the similar topic Change entity domain? but…

Ok, when I installed HA and some integrations at first of all I found that not all domains defined corrrectly.

I have MegaDevice that control some devices (by wire connections). It has inputs (I2C, 1-wire etc.; but I’m about outputs now). I have 3 electrical batteries (air heaters) connected to MegaD for ports 10, 11, 12… All of them were detected as a light domain. And now I have (for example):

type: turn_on
device_id: ac3f8126.............cad90f620eb4a
entity_id: **light**.mega_10
**domain: light**

I’d prefer to have correct domain for thermo devices like “heater”, “batery” etc.

How to fix it, change domain for entities?
Thank you in advance!
P.S. More detailed answer if you can… I’m newby I told :slight_smile:

1 post - 1 participant

Read full topic


Zig-ah-zag-ah! sonoff and hassio setup suggestions

$
0
0

Hi all,
I’ve bought some sonoff zigbee mini and the zzh hardware. I’d like to ask some suggestions from more experienced users on their configurations. More specifically I have some questions like:

  • would you recommend to integrate with hassio using zigbee2mqtt or the ZHA? From what I’ve read it seems that zigbee2mqtt is more powerful and enables to create more advanced config, am I missing something?
  • from the zigbee2mqtt page I can see there are 2 firmwares, the coordinator and router. Which one of the 2 it’s needed to flash the zzh to make it working properly with hassio?
  • do you have any gotchas to share where I need to pay extra attention when configuring the zzh together with the sonoff devices?

2 posts - 1 participant

Read full topic

Sorting Entities Card by Time Last Updated

$
0
0

Hello,

As per the title really, I am using the Entities card to list multiple similar entities, such as contact or motion sensors for the house, and would like to order the list with the most recently updated state at the top.

Is this currently possible and if so, how?
Thanks

1 post - 1 participant

Read full topic

Terminal 'Connection Closed'

$
0
0

I am trying to run Terminal addon. I have configured the addon in supervisor and installed it. I get no invalid yaml errors. It accepts my authorized public key. I can see no errors in the log. I opened Putty and connected successfully but when I try to open the web ui I get Connection Closed. What am I missing?

s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] cli: applying... 
[fix-attrs.d] cli: exited 0.
[fix-attrs.d] profile: applying... 
[fix-attrs.d] profile: exited 0.
[fix-attrs.d] ssh: applying... 
[fix-attrs.d] ssh: exited 0.
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] apks.sh: executing... 
[cont-init.d] apks.sh: exited 0.
[cont-init.d] keygen.sh: executing... 
[13:33:45] INFO: Restoring host keys...
[cont-init.d] keygen.sh: exited 0.
[cont-init.d] profile.sh: executing... 
[cont-init.d] profile.sh: exited 0.
[cont-init.d] ssh.sh: executing... 
[13:33:46] INFO: Setup authorized_keys
[cont-init.d] ssh.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[13:33:46] INFO: Starting Web Terminal...
[2022/01/02 13:33:46:5249] N: ttyd 1.6.3-3b174da (libwebsockets 4.1.4-v4.1.4)
[2022/01/02 13:33:46:5250] N: tty configuration:
[2022/01/02 13:33:46:5250] N:   start command: tmux -u new -A -s homeassistant bash -l
[2022/01/02 13:33:46:5250] N:   close signal: SIGHUP (1)
[2022/01/02 13:33:46:5250] N:   terminal type: xterm-256color
[2022/01/02 13:33:46:5251] N: LWS: 4.1.4-v4.1.4, loglevel 7
[2022/01/02 13:33:46:5251] N: NET CLI SRV H1 H2 WS IPV6-off
[2022/01/02 13:33:46:5277] N:    /usr/lib/libwebsockets-evlib_uv.so
[2022/01/02 13:33:46:5657] N:  Using foreign event loop...
[2022/01/02 13:33:46:5663] N:  Listening on port: 8099
[13:33:46] INFO: Starting the SSH daemon...
Server listening on 0.0.0.0 port 22.

Server listening on :: port 22.

[2022/01/02 13:34:11:0959] N: HTTP / - 172.30.32.2
[2022/01/02 13:34:11:2660] N: HTTP /token - 172.30.32.2
[2022/01/02 13:34:11:5109] N: HTTP /token - 172.30.32.2
[2022/01/02 13:34:11:9342] N: HTTP /token - 172.30.32.2
[2022/01/02 13:34:12:6014] N: HTTP /token - 172.30.32.2
[2022/01/02 13:34:13:6351] N: HTTP /token - 172.30.32.2
[2022/01/02 13:34:15:3799] N: HTTP /token - 172.30.32.2
Accepted publickey for root from 192.168.0.100 port ***** ssh2: RSA SHA256:K****************

[2022/01/02 13:46:07:4154] N: HTTP / - 172.30.32.2

1 post - 1 participant

Read full topic

Help with custom:multiple-entity-row

$
0
0

I have hard time try to setup custom:multiple-entity-row, I was hopping to get some help.

for example, this work

type: vertical-stack
cards:

  - type: entities
    entities:
      - type: 'custom:multiple-entity-row'
        entity: binary_sensor.node_29_access_control_window_door_is_open

         
        entities:
          - entity: group.hall_presence
        name: Hall
        
 

but I can’t add a name for the second (first in the code) entity

if I add name:

type: vertical-stack
cards:

  - type: entities
    entities:
      - type: 'custom:multiple-entity-row'
        entity: binary_sensor.node_29_access_control_window_door_is_open
        name: Two entities
         
        entities:
          - entity: group.hall_presence
        name: Hall

it’s return

duplicated mapping key (12:9)

  9 |          
 10 |         entities:
 11 |           - entity: group.hall_presence
 12 |         name: Hall
--------------^
 13 |         
 14 |  

also can I add an action on the door icon (or everything on this first card) to call a service (turn light on)
Screenshot 2022-01-02 at 19.09.13

1 post - 1 participant

Read full topic

Controlling Philips Hue lights w/ smart switch

$
0
0

Is it possible to use smart switches (I am using HomeSeer and Inovelli Red) to control Hue light bulbs? I want to be able to use dimming functionality, as well as making use of the multi-tap functionality on the switches themselves.

Additionally, these switches have the ability to show a “dim” level using integrated LEDs–however, if the Hue control itself is controlling the dim level, is it possible to mirror the actual dim level on the switch?

Thanks!

1 post - 1 participant

Read full topic

HomeAssistant-Tapo-Control && C200

$
0
0

Hi.
I have a C200 camera. For the management in HA, I used the integration indicated above.
Streaming works fine, but I can’t find the motion sensors. Where am I wrong?
The firmware is: 1.1.15 Build 211111 Rel.34670n(4555)

1 post - 1 participant

Read full topic

SDS011 air quality sensor integration


Sending a picture with Telegram

$
0
0

I’m looking for some help because i’m starting to loose faith that I can resolve it.

It sounds easy. Send a picture with telegram.

The story:
I set up a security cam outside my house. The software i’m running is Agent DVR and it runs on my Windows server 2016. It takes a picture when it sees a person,dog or cat. I want so sent that picture with Home assistant to my phone with Telegram.

The first thing I tried to do is to connect a nfs share to my HA. My thinking was that it would be easyer to have the pictures localy avalible in HA but I can’t get it to work because I keep getting errors. “Error running command: mount -t nfs3 192.168.2.8:/camerabeelden /media, return code: 255”. Looking in other topics i’m not the only one with this problemen so I gave up.

What i’m thinking of right now is to use the API of Agent DVR to get information into Homeassistant but I have no clue how to start. What I want to do is the following.

  1. Get the picture name :
    http://Windowsserver2016:8090/q.json?cmd=getcameragrabs&oid=1&ot=2
    The result I get:
    {“total”:72,“results”:[{“name”:“2022-01-02_15-33-58_492.jpg”,“time”:“1641145734680.49”,“tags”:“person”},{“name”:“2022-01-02_15-33-55_250.jpg”,“time”:“1641145734649.47”,“tags”:“person”},{“name”:“2022-01-02_15-33-53_713.jpg”,“time”:“1641145734629.48”,“tags”:“person”},{“name”:“2022-01-02_14-48-38_844.jpg”,“time”:“1641145734615.47”,“tags”:“person”},{“name”:“2022-01-02_14-48-36_991.jpg”,“time”:“1641145734601.43”,“tags”:“person”}], “last”:637767461346014346}
  2. Extract the picture name:
    2022-01-02_15-33-58_492.jpg
  3. Use this jpg into the next url:
    http://Windowsserver2016:8090/grabimage.jpg?oid=1&fn=2022-01-02_15-33-58_492.jpg"

This url I can then use in a automation:

alias: '-Test- Telegram - Stuur me een foto wanneer er beweging is.'
description: ''
trigger:
  - platform: mqtt
    topic: Agent/cameras/achtertuin/deepstack
condition: []
action:
  - service: telegram_bot.send_photo
    data:
      url: >-
        http://192.168.2.8:8090/grabimage.jpg?oid=1&fn=2022-01-02_15-33-58_492.jpg
mode: single

Is this posible what I want to do?
Is it posible to use variables in automations?
Is there maby a easyer way to do this?

1 post - 1 participant

Read full topic

Actual status entity in generic-thermostat entity

$
0
0

Would it be possible somehow to enable functionality that my climate entity is actually active?
When configuring the climate entity I provide a “heater” entity and a “target_sensor”, however, it would be great to be able to add another entity here to confirm the actual status. For electric heaters this would probably be the power consumption (with a threshold) or it could also be a binary_sensor. For example I have a temperature sensor on my (dumb) heatpump measuring the temperature from it, when there is a delta compared to the room temperature this allows me to have a status of the heatpump in HA.
This could also be relevant for a electric heater with a built in thermostat, the climate entity could be “Enabled” but not actually active.

1 post - 1 participant

Read full topic

Dim/Brighten light on button Long Press

$
0
0

Hello everyone,

here i am again looking for some help with an automation i am trying to build and although i have seen many similar posts, i was not able to make it work for my set up. I have an Aqara Mini Switch that supports long press hold and long press release and i am trying to use the feature to dim or brighten the light in the WC. So the intention is:

When i hold the button, the brightness increases smoothly. Here is a screenshot of the aqara button functions:

The light i have in the WC supports increase / decrease brightness but some how i need to make it work as if it is increasing or decreasing the brightness for as long as i hold the button. I thought to use the Repeat Until function in automations but some how it is not working for me.

Here is a screenshot of the light functions:

And here is the automation i tried to build:

alias: WC Light Brightness
description: ''
trigger:
  - device_id: d49305d0c0a8eeb4e553f4a415fe03b2
    domain: zha
    platform: device
    type: remote_button_long_press
    subtype: remote_button_long_press
condition: []
action:
  - repeat:
      until:
        - condition: state
          entity_id: light.wc_light
          state: '255'
          attribute: brightness
      sequence:
        - device_id: 67a622f167413951530a00b4c623b8c1
          domain: light
          entity_id: light.wc_light
          type: brightness_increase
mode: single

Could i please ask for your help to make it work? Also, in case the brightness is at 100% the next long press should start decreasing the brightness.

Thank you very much
Kind Regards
M

1 post - 1 participant

Read full topic

New template sensor definition: how to set entity_id and availability?

$
0
0

I’m trying to use the “modern configuration” for a template sensor for the first time (according to https://www.home-assistant.io/integrations/template/#configuration-variables).

What I have:

template:
  - sensor:
      - name: Statistik Entitäten gesamt
        unique_id: statistics_entities_total
        state_class: total
        icon: mdi:numeric
        state: "{{ states | list | length }}"

What I got:
grafik

1. How do I set the entity_id?
I thought the value set for unique_id would be used for this. I don’t want (initially!) the entity_id to be based on the entity name. That has a few downsides like trash being sent to the InfluxDB, additional manual steps etc. etc…

:bulb: What I found (and couldn’t imagine this really is the “new and recommended way” - really guys?!?):
I need to do this manually after creating the sensor using customization.yaml or the UI. That’s a big step back dear devs. Almost doubles the work… I tend to switch back to the old format, same situation like Mutt in https://community.home-assistant.io/t/use-of-new-template-sensor-binary-sensor-format/355958/13.

2. How to set the availability?
If - for whatever reason - the sensor value can’t be calculated (or is negative/below zero), I want the sensor to be unavailable. This is not based on another sensor value like we typically use for availability, but the sensor value itself. Do I need to repeat the state content or is there some kind of “self-reference”?
In other words: in the above example, do I need to use this or is there a smarter, less repeating way?
availability: "{{ (states | list | length) | int(0) > -1 }}"

1 post - 1 participant

Read full topic

Need help for settings an automaton for my Bravia TV

$
0
0

Hi,

I want to know how to change a source in YAML for my sony bravia 55x950g in HA. i want to create a scrolling menu with the sources a want to configure for an easy switching with my phone or watch. i’ve already make the OFF one with this code :

- id: '1641154773043'
  alias: 'TV Off '
  description: Menu deroulant "TV"
  trigger:
  - platform: state
    entity_id: input_select.tv
    to: 'Off'
  condition: []
  action:
  - type: turn_off
    device_id: bfcf59f870ab575a6bb47ec2b3fb2705
    entity_id: remote.sony_bravia_tv
    domain: remote
  mode: single

thanks a lot for your help,

1 post - 1 participant

Read full topic

Viewing all 108888 articles
Browse latest View live


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