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

Simple automation to swtich HVAC of a fan from heat to cool - not working

$
0
0

Hi all,

I have a simple automation that switches the HVAC mode of a fan to cool (if its in heat) when motion is not detected for more than 45 in that room. It doesn’t seem to work though as the automation never gets triggered (says never for last run). Here’s the code:

alias: Change Basement Dyson Fan to Cool From Heat when no one is Present
description: ''
trigger:
  - platform: state
    entity_id: binary_sensor.basement_motion_detector
    from: 'on'
    to: 'off'
    for:
      hours: 0
      minutes: 45
      seconds: 0
condition:
  - condition: device
    device_id: 7b6ed082b252bd9cd1737754248
    domain: climate
    entity_id: climate.pure_hot_cool
    type: is_hvac_mode
    hvac_mode: heat
action:
  - device_id: 7b6ed082b252bd9cd1737754248
    domain: climate
    entity_id: climate.pure_hot_cool
    type: set_hvac_mode
    hvac_mode: cool
mode: single

and heres a typical history of the the motion detector.

I don’t seen any errors in the logs.

1 post - 1 participant

Read full topic


Generic camera failed after 2022.4.2 (Unable to install package av==8.1.0)

$
0
0

Unable to install package av==8.1.0: error: subprocess-exited-with-error × Running setup.py install for av did not run successfully. │ exit code: 1

Worked before…

I can install 9.1.1 manually, but the old version doesn’t install:
pip3 install av :+1:
pip3 install av==8.1.0 :no_entry:

Reinstalled 2022.4.1 and it works again.

1 post - 1 participant

Read full topic

Utility Meter - UI-based configuration and changes

$
0
0

Hi,
thanks for making Utility Meter configurable via UI (helpers section). But how can I modify these settings later on, e.g. changing from delta to total_increment type?

Best,
Marcel

1 post - 1 participant

Read full topic

One of my Zen34 remotes stopped triggering scenes to HA

$
0
0

So I have a bunch of Zen34 remotes. Been working great for 6+ months. This week, one stopped sending the scene command data to HA, the rest are fine, didn’t update anything recently, they’re same firmware version. I’m baffled what the difference would be.

The one that works gives me this in zwavejs2mqtt debug:

08:38:49.368 DRIVER « [Node 014] [REQ] [ApplicationCommand]
└─[CentralSceneCCNotification]
sequence number: 26
key attribute: KeyPressed
scene number: 2
2022-04-11 08:38:49.371 INFO ZWAVE: Node 14: value notification: 91-0-scene-002 0
08:38:49.372 CNTRLR « [Node 014] received CentralScene notification {
“nodeId”: 14,
“ccId”: “Central Scene”,
“ccCommand”: “0x03”,
“payload”: “0x1a8002”
}

The one that doesn’t gives this on button press:

08:38:50.598 DRIVER « [Node 018] [REQ] [ApplicationCommand]
└─[CentralSceneCCNotification]
sequence number: 148
key attribute: KeyPressed
scene number: 2
08:38:50.601 CNTRLR « [Node 018] received CentralScene notification {
“nodeId”: 18,
“ccId”: “Central Scene”,
“ccCommand”: “0x03”,
“payload”: “0x948002”
}

The data is getting there. It is only missing the line of “INFO ZWAVE: Node 14: value notification: 91-0-scene-002 0”, which seems to be the actual processing of the driver data into the scene value notification that should go to HA.

I don’t know where to start figuring out if it’s a problem with the remote or zwavejs or my config or what’s going on.

1 post - 1 participant

Read full topic

Energy view figure 20x more vs. individual sensor value - why?

$
0
0

Hi. I have just added a Aqara Smart Plug to Raspberry 4 based Home Assistant installation via Conbee II stick and started dipping my toe to Energy related topic. Very interesting!

The smart plug is connected to washing machine, which takes 2200W max. The plug gets a switch and three sensors (power, consumption, temperature) created in HA. In Developer → Template view I can see that for consumption sensor device_class = energy, unit_of_measurement = kWh, which I guess is a requirement. All good?

However, when I turned washing machine on and started to look at dashboard data it looks a bit odd. On the right the kWh figures seem to be cumulative, which I expected and W figures make sense as well But sensor values on the left (1st and 2nd) seem to show zero all the time.

And where it gets even more odd is when I take a look at the Energy view, which after an hour tells that this washing machine has used 20 kWh, where the cumulative value from sensor tells that it took total of 1.1 kWh.

Maybe this is just a HA-energy-newbie thing, right?

1 post - 1 participant

Read full topic

Adding minutes top time helper by use of buttom

$
0
0

Hi,
I have a daily automation where time needs to be changed frequently.
Therefore I use a card + grid with the time in the middle and “+” and “-” left and right.
I would like “+” to add 15 minutes to the time and “-” to substract 15 minutes of the time.
Is this possible to do this inside the card? If yes, can someone help me on this?

type: grid
cards:
  - type: button
    icon: mdi:plus-box
    name: ' '
    tap_action:
      action: call-service
      service: input_datetime.set_datetime
      service_data:
        # add 15 minutes to input_datetime.action_time
      target:
        entity_id:
          - input_datetime.action_time
  - type: entity
    entity: input_datetime.action_time
    name: Action
  - type: button
    icon: mdi:minus-box
    name: ' '
    tap_action:
      action: call-service
      service: input_datetime.set_datetime
      service_data:
        # substract 15 minutes from input_datetime.action_time
      target:
        entity_id:
          - input_datetime.action_time

Thanks a lot!
Christian

1 post - 1 participant

Read full topic

2022.4 broke the duckdns + nginx remote access

$
0
0

Hi,

I had a working configuration to connect my HA from outside my home network.
After upgrading to 2022.4 i’m nop able to connect from internet anymore.
I have tried with iOS companion app and also from my work computer.
Both connections worked fine before the upgrade.
Now from iOS I get “An SSL error has occurred and a secure connection to the server cannot be made. NSURLErrorDomain -1200”

Tapani

1 post - 1 participant

Read full topic

Sonos Playlists Scripts Stopped Working After Update

$
0
0

I have about 30 scripts that I would use to play different Sonos playlists, after the last update they stopped working. I get this error message:

Entity media_player.office_sonos does not support this service

Do any of the developers care about maintaining legacy code? I’m still trying to fix automations the ‘upgrade’ to JS Z Wave migration broke, now I have 30 more scripts that another ‘update’ broke.

1 post - 1 participant

Read full topic


Configure TS0002 startup behavior and switch mode

$
0
0

I read on some posts that is possible to change startup behavior and switch mode of the TS0002. Where can I do this?

1 post - 1 participant

Read full topic

How to set the set_cover_position service for template_cover

$
0
0

Hey guys, im have some hard times with one of the param of a template cover. Im using shelly for controlling my covers, and im trying to do a template cover, where the original cover entitys position 1-25% is defined as 1% in the template cover, and the 26-100 percent is the other 99. I need that because the shelly calibration is don’t take in consideration the roller blinds holes (between the bars) that take some time to close.
So, my problem is that the set_cover position not working properly.

cover:
  - platform: template
    covers:
      nappali2redony:
        device_class: shutter
        friendly_name: "tesztredőny"
        unique_id: "nappali2redony"
        value_template: "
        {% if state_attr('cover.shellyswitch25_b89f26','current_position') | int==0 %}
        closed
        {%else%}
        open
        {%endif%}"
        position_template: "
        {% if state_attr('cover.shellyswitch25_b89f26','current_position') | int==0 %}0
        {% elif state_attr('cover.shellyswitch25_b89f26','current_position') | int<26 %}1
        {%else%}
        {{ ((state_attr('cover.shellyswitch25_b89f26','current_position')-25)/(100-25) *100) | round(0)}}
        {%endif%}"
        open_cover:
          service: cover.open_cover
          data: {}
          target:
            entity_id: cover.shellyswitch25_b89f26
        close_cover:
          service: cover.close_cover
          data: {}
          target:
            entity_id: cover.shellyswitch25_b89f26
        stop_cover:
          service: cover.stop_cover
          data: {}
          target:
            entity_id: cover.shellyswitch25_b89f26
        set_cover_position:
          service: cover.set_cover_position
          data:
            position: "{{position}}"    
          target:
            entity_id: cover.shellyswitch25_b89f26

With that config the slider (or simply call the service) act as the original cover. How should i change that to work with the positions i set in the template?

1 post - 1 participant

Read full topic

How to enter energy configuration

$
0
0

I think I have either forgotten something or my setup is somehow ruined but I cannot find any way to configure energy anymore. I’m running Home Assistant version 2022.4.2 in rootless Podman container.

Any hints how to enter energy setup in the frontend?

1 post - 1 participant

Read full topic

Nest not sending animal notifications to HA

$
0
0

I have an automation set up to turn on outdoor floodlights when “motion detected” or “person detected” on my Nest Battery Cameras. It works fine when a person is detected, but doesn’t trigger when an animal is detected (I get the animal detected notification in the Google Home app). Is this a limitation of the integration?

1 post - 1 participant

Read full topic

Newbie lack of understanding dumb MQTT device

$
0
0

Hello everyone, first post here after a successfull begining with HomeAssistant, so please be patient. I’ve been tinkering with HomeAssistant on a Raspberry Pi 4B for a couple of weeks now.

My main objective with HomeAssistant is to reduce/remove my reliance on lots of apps and cloud services by controlling everything from one source. I do not currently have many devices, mostly Philips Hue and a variety of smart plugs. Usual media devices, TV, set-top box and surround sound amp, these are controlled with a Harmony Hub. Plus one rather dumb vertical blind motor, which can be controlled with a Sonoff RF Bridge as well as buttons on the housing and a two button keyfob.

So all of these were working independantly and I wanted to simplify. So to date I have flashed the smart plugs with Tasmota and these are now all controllable with Home assistant. I have automations running that duplicate what I had before, except the blind motor

The dumb blind motor that I’ve had for a while, it is my intention to replace this at some point, but it is providing me with some “interesting” learning about HomeAssistant! When I first got the blind motor, the configuration was straight forward: pair the fob with the motor, set up eWeLink, connect with the Sonoff RF Bridge, set up the schedule(s), all was good.

Now I want to integrate the motor into HomeAssistant, The RF Bridge is a V1 and I’ve flashed it with Tasmota and Portisch, I have sniffed the codes from the fob and successfully used the codes to add a MQTT switch in configuration.yaml. The switch works fine from the entity dialog, when I “open” or “close” but I cannot add this to an automation, I need this entity to be a device???

In my current “test” automation I use Call Service with the MQTT payload which works, but this call does not reflect in the MQTT switch status. This dumb motor is really dumb, in that it does not return ANY status information so I have no idea what state the blinds/motor is in.

I’ve read lots of documents but am really stumped how to get this working. I’m guessing I’m looking at this the wrong way round or have not made the right connections in my head as yet!

1 post - 1 participant

Read full topic

"Days Until" Template sensor - help needed

$
0
0

image

I have a template sensor that looks like this. It takes today’s date and shows how many days it’s been since a water filter was last replaced. This works perfectly.

sensor:
  - platform: template
    sensors:
      water_filter_days_since_replacement:
        friendly_name: 'Water Filter Days Since Replaced'
        value_template: >
          {{ ((as_timestamp(now()) - state_attr('input_datetime.water_filters_last_replaced','timestamp')) | int / 86400) | round(0) }}
        icon_template: mdi:clock-end
        unit_of_measurement: 'Days'

I also have a 2nd template sensor that shows how many days until it needs to be replaced. I’ve hardcoded 90 into the template, but how can I add the value of a Number helper instead?

    sensors:
      water_filter_days_remaining:
        friendly_name: 'Water Filter Days remaining'
        value_template: >
          {{ 90 - ((as_timestamp(now()) - state_attr('input_datetime.water_filters_last_replaced','timestamp')) | int / 86400) | round(0) }}
        icon_template: mdi:clock-end
        unit_of_measurement: 'Days'

1 post - 1 participant

Read full topic

Doorsensor sunset

$
0
0

I’am trying o make a automation based on a Doorsensor with sunset conditions

alias: 'Tuin licht zonsondergang ’
description: ‘’
trigger:

  • platform: sun
    event: sunset
    offset: 0
    condition:
  • type: is_open
    condition: device
    device_id: f8875cf2a0941ea8393473476f486a3b
    entity_id: binary_sensor.keukenhok_sensor
    domain: binary_sensor
    action:
  • service: light.turn_on
    data: {}
    target:
    device_id:
    - 61a1439e51f60269c660290b8222ac42
    - 5e40aedfbf62564e719c3d09f2b9a873
    entity_id:
    - light.schuurlamp_1
    - light.schuurlamp_2
    area_id: achterkant
    mode: single

I don’t know what I do wrong I does’nt work :wink:

Thanks in advance

1 post - 1 participant

Read full topic


Difficulty integrating Amazon FireTV into HA

$
0
0

I’m trying to add my Amazon 43" FireTV into HA but am not having any luck.

I’ve followed the Android TV integration instructions, turned on ADB debugging on the TV, set up an ADB server, but immediately get a ‘connection refused’ error. I’ve verified the port (5037) is open in the firewall, etc. Anyone have any suggestions? I tried the preferred built-in adb method but that mentioned it might not work with newer TVs (it didn’t) but the ADB server is not working either.

Thanks,
Jim

1 post - 1 participant

Read full topic

Cannot get rtsptoweb to work

$
0
0

Hi,

I have several Hikvision cameras connected to home assistant via webrtsc add-in.
url: rtsp://admin:pwd@192.168.x.x:554/ISAPI/Streaming/Channels/103

In lovelace it takes long before live view starts and at start I see spinning circles.
image

I read that rtsptoweb would improve this.

I just installed the add-in rtsptoweb and disabled ssl verification just to make sure this does not cause a problem.

If I try to open the web UI, I get ‘page not found’.
In the log file I see errors.

[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] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-rtsp-to-web: executing... 
[22:05:49] INFO: Updating configuration
jq: error: syntax error, unexpected == (Unix shell quoting issues?) at <top-level>, line 1:
if (.ice_username, == null) then                   
jq: error: syntax error, unexpected '|' (Unix shell quoting issues?) at <top-level>, line 3:
        elif (.ice_username, | type == "string") then                             
jq: error: syntax error, unexpected // (Unix shell quoting issues?) at <top-level>, line 4:
            .ice_username, // empty                           
jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
if (.ice_username, == null) then
jq: 4 compile errors
jq: error: syntax error, unexpected == (Unix shell quoting issues?) at <top-level>, line 1:
if (.ice_credential, == null) then                     
jq: error: syntax error, unexpected '|' (Unix shell quoting issues?) at <top-level>, line 3:
        elif (.ice_credential, | type == "string") then                               
jq: error: syntax error, unexpected // (Unix shell quoting issues?) at <top-level>, line 4:
            .ice_credential, // empty                             
jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
if (.ice_credential, == null) then
jq: 4 compile errors
jq: error: syntax error, unexpected IDENT, expecting $end (Unix shell quoting issues?) at <top-level>, line 1:
.server.ice_servers = "["stun.l.google.com:19302"]"                         
jq: 1 compile error
[cont-init.d] 01-rtsp-to-web: exited 3.
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.

Q1: as I left the config for this add-in in default settings I guess It must be something simple, what am I doing wrong?

Q2: what to fill in in the webrtsp integration? the IP of my homeassistant?
image

thanks!

Grtz
Jules

1 post - 1 participant

Read full topic

Valetudo Card Syntax Help (Multiple Vacuums)

$
0
0

Hi all,

Hoping someone might be able to assist in what the proper syntax might be in the Valetudo/HA documentation for Home Assistant’s Lovelace card & scripts.yaml

It’s straightforward with only one Valetudo vacuum instance, but not sure the best way to go about adding the proper YAML syntax for more than one.

As far as I can tell, their documentation for HA’s YAML modification to show this would be in the Lovelace dashboard card, and scripts.yaml, but running into multiple roadblocks (mentally) on how this card build-out scales beyond one vacuum.

Thank you,
Karson

1 post - 1 participant

Read full topic

Controlling lighting based on Sun

$
0
0

Hi all,

I’m hitting some really big stumbling blocks on simple things.

I’d like to control lighting based on a motion sensor and the time of day. Not clock based but sunrise and sunset.

I’ve tried all configurations in the GUI and they stop working as soon as introduce sun as a condition.

Can anyone think why? Below is the YAML

alias: Hallway Lighting On After Sunset
description: After sunset, turn on the hallway light
trigger:
  - type: motion
    platform: device
    device_id: c9244e26b3cff0472c6eb4cefd1d3bea
    entity_id: binary_sensor.hallway
    domain: binary_sensor
condition:
  - condition: sun
    after: sunset
action:
  - type: turn_on
    device_id: 4d133c378a42f4889393deff2af147d7
    entity_id: light.ikea_of_sweden_tradfri_bulb_e27_w_opal_1000lm_b06fc6fe_level_on_off
    domain: light
    brightness_pct: 100
mode: single
`````````````````````

1 post - 1 participant

Read full topic

Kaffeemaschine Coffeemachine

$
0
0

I want to show you how i implemented my Coffee-Mchine into HA.
Goal was to switch an 230V Outlet (wich is easy with Shelly) but it should have an pushbutton to activate the Automatic or just turn always on.
I used 1 Pushbutton and 2 LEDs, one for “Auto-Mode” and one for “always-on-mode”.
I desoldered the input parts on SHELLY1 so the Input comes TTL levels.
I used GPIO1 wich is available on the UART Port in SHELLY1 for AUTO-LED and soldered the ON-LED to the Relays Coil. (ofcourse with series resistors)

In ESPHOME it looks like this:

esphome:
  name: kaffeemaschine
  platform: ESP8266
  board: esp01_1m
  on_boot:
    priority: 600
    # ...
    then:
      - switch.turn_off: kaffee_relays
      - switch.turn_on: kaffee_led_auto
      
# Enable Home Assistant API
api:
  password: "xxxxxx"

ota:
  password: "xxxxxx"

wifi:
  networks:
  - ssid: "xxxxxxxxxe"
    password: "xxxxxxxxxe"
  - ssid: "xxxxxxxxxe"
    password: "xxxxxxxxxe"
  manual_ip:
    static_ip: 192.168.2.250
    gateway: 192.168.2.1
    subnet: 255.255.252.0

web_server:
  port: 80

        
binary_sensor:
  - platform: gpio
    pin:
      number: 5
      inverted: true
      mode:
        input: true
        pullup: true
    id: 'kaffee_taster'
    name: "Kaffeemaschine_Taster"
    filters:
      - delayed_on: 10ms
      - delayed_off: 10ms
    on_press:
      then:
        - switch.toggle: 'kaffee_relays'
        - switch.toggle: 'kaffee_led_auto'

switch:
  - platform: gpio
    pin: 4
    name: "Kaffeemaschine_Relays"
    id: 'kaffee_relays'
    inverted: false
    restore_mode:
        RESTORE_DEFAULT_OFF
  - platform: gpio
    pin: 1
    name: "Kaffeemaschine_LED_Auto"
    id: 'kaffee_led_auto'
    inverted: false
    restore_mode:
        RESTORE_DEFAULT_ON
 

the Automation in HA looks like this:

alias: Kaffeemaschine aus
description: ''
trigger:
  - platform: time
    at: '09:00'
condition:
  - condition: state
    entity_id: switch.kaffeemaschine_led_auto
    state: 'on'
action:
  - type: turn_off
    device_id: 1777159456453bf3b2ae1d8053f852b4
    entity_id: switch.kaffeemaschine_relays
    domain: switch
mode: single

and

alias: Kaffeemaschine ein
description: ''
trigger:
  - platform: time
    at: '08:00'
condition:
  - condition: state
    entity_id: switch.kaffeemaschine_led_auto
    state: 'on'
action:
  - type: turn_on
    device_id: 1777159456453bf3b2ae1d8053f852b4
    entity_id: switch.kaffeemaschine_relays
    domain: switch
mode: single

This runs very well.

To the Outlet:
i drilled 3 3mm holes above the Outlet for the two LEDs and the pushbutton,
it looks much nicer as a ugly timerbox…

Just for your Insparation, maybe someone can use this.

Wolfram

1 post - 1 participant

Read full topic

Viewing all 108014 articles
Browse latest View live