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

Flex-table-card: logic and a rest sensor

$
0
0

Hi there,

I’m using the flex-table-card to display the departure times of the busses in my area.
I get the data via a rest sensor and let it fill its attributes:

sensor:
  - platform: rest
    name: "AbfahrtenBus2024"
    scan_interval: 60
    value_template: '{{ value_json.locations[0].disassembledName }}'
    json_attributes:
      - stopEvents
    resource: https://www.vrr.de/vrr-efa/XML_DM_REQUEST?calcOneDirection=0&coordOutputFormat=WGS84[dd.ddddd]&deleteAssignedStops_dm=1&depSequence=30&depType=stopEvents&doNotSearchForStops=1&genMaps=0&imparedOptionsActive=1&inclMOT_0=true&inclMOT_1=true&inclMOT_10=true&inclMOT_11=true&inclMOT_12=true&inclMOT_13=true&inclMOT_17=true&inclMOT_18=true&inclMOT_19=true&inclMOT_2=true&inclMOT_3=true&inclMOT_4=true&inclMOT_5=true&inclMOT_6=true&inclMOT_7=true&inclMOT_8=true&inclMOT_9=true&includeCompleteStopSeq=1&includedMeans=checkbox&itOptionsActive=1&itdDateDayMonthYear=23.10.2024&itdDateTimeDepArr=dep&itdTime=18:13&language=de&locationServerActive=1&maxTimeLoop=1&mode=direct&name_dm=de:05315:11201&outputFormat=rapidJSON&ptOptionsActive=1&serverInfo=1&sl3plusDMMacro=1&type_dm=any&useAllStops=1&useElevationData=1&useProxFootSearch=0&useRealtime=1&version=10.5.17.3&vrrDMMacro=1

Yesterday I was made aware, that there is now real-time data, which I want to use in my Dashboard. This is how far I’ve come:

type: custom:flex-table-card
style: |
  ha-card {
  font-size: 1em;
  line-height: 2em;
  }
  .card-header  {
  text-align: center;
  }
css:
  td.left:nth-child(1): "text-align:center;width: 40px;"
  td.left:nth-child(3): "text-align:center;width: 40px;"
  th.left:nth-child(1): "text-align:center;width: 40px;"
  th.left:nth-child(3): "text-align:center;width: 40px;"
entities:
  include:
    - sensor.abfahrtenbus2024
columns:
  - data: stopEvents
    modify: x.transportation.number
    icon: mdi:bus
    name: ""
  - data: stopEvents
    modify: x.transportation.destination.name
    name: Richtung
  - data: stopEvents
    modify: x.departureTimePlanned
    icon: mdi:clock
    name: ""
  - data: stopEvents
    modify: "{{x.departureTimeEstimated}}"
    icon: mdi:bus
    name: ""

I can’t use any logic in the 4th coloum - for example showing the time difference between now() and the estimated departure time or only showing the departure time if it exists at all. (Sometimes this element is not part of the response json from the rest inquiry).
So I need your hive mind. Anybody got a guess?

2 posts - 2 participants

Read full topic


Zigbee2mqtt migration error

$
0
0

I just migrated Home Assistant to a new machine. I moved from an older win10 desktop running Home Assistant on a Virtual Box VM to a new NUC 100 flashing the SSD with HAOS 13.X. Zigbee2mqtt migration was my biggest challenge. Z2M seems ok, but I am not sure. I underlined what I think are 2 errors in line one (1) of the “database.db” file, as seen in the file editor. If I am correct, can I edit out the underlined MAC portion of the coordinator in the “database.db” file with the MAC portion showing up in the add-on config IU and/or the setting > serial as seen in the zigbee2mqtt. And should the coordinator “nwkAddr” be number 1 (one)? No other coordinators is listed in the “database.db” file. And yes, I change out the coordinator during the zigbee2mqtt migration.

In zigbee2mqtt > setting > serial, I see…
/dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_181f9a756399ec11aa390bc944d80d13-if00-port0

In zigbee2mqtt addon configuration is see…
port: >-
/dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_181f9a756399ec11aa390bc944d80d13-if00-port0”

In file editor /homeassistant/zigbee2mqtt/database.db, the first line begins with…
{“id”:1,“type”:“Coordinator”,“ieeeAddr”:“0x**00124b00257ca3fc**”,“nwkAddr”:0,“manufId”:0,“epList”:[1,2,3,4,5,6,8,10,11,12….

Thank you for any help

1 post - 1 participant

Read full topic

Zooz ZEN73, three way manual switch - trigger shelly 1

$
0
0

Hello,

I’m looking for some guidance. My goal is to have a ZEN73 trigger a shelly 1 to turn on/off a lamp when the manual switch in this three-way configuration is turned on/off.

I replaced a three-way switch at the bottom of my stairwell with a ZEN73 where lines is. The light load is at the top of the stairs, manual switch.

I’m looking at how to trigger the shelly when the manual switch is turned on.

Maybe an entity in the Zen73?

Thanks in advance for any ideas.

1 post - 1 participant

Read full topic

Media player volume setting

$
0
0

Hello everyone, my notifications through Alexa have stopped due to an error which arise when I try to set the media player volume (" Failed to perform the action media_player.volume_set. Unknown error"). Actually, the volume changes but the automation stops in that point.
Any lead?

action: media_player.volume_set
target:
  entity_id: media_player.echo_dot_of_myself
  device_id: d762a734345hy29jf00we12gh451b66
data: 
  volume_level: 0.4

1 post - 1 participant

Read full topic

2 x Flo by Moen - "Today's water usage" is wrong

$
0
0

Hello,

I’ve recently installed a second Flo by Moen, but it seems like one of the devices is showing the other’s “today’s water usage” data.
I can’t find a way to separate the water usage readings for each device.
However, when I check the data in the Android app and use the device selector for water usage, the information appears to be accurate.

Has anyone else encountered this problem?

1 post - 1 participant

Read full topic

Logbook Card Shows Entries More Than Once

$
0
0

I wanted to ask here, because this has been happening for quite a while and is annoying. Wondering if anybody else has noticed, or how I can fix this?

In the sidebar, I have a logbook card which shows key events for my dashboard views. The problem I have is that the card shows the entries, sometimes fine, sometimes duplicated, sometimes the same entry 4-6 times. I end up with a long list because each key event entry is shown more than once. The duplicates have the same timestamps, and are from the same event.

Screenshot_20241023_125903

It changes on browser refresh. Sometimes refreshing fixes the duplicates, sometimes it creates more duplicates. I am wondering if it’s a browser cache issue, but it happens so often I don’t want to keep hitting refresh just to try and fix it.

Any ideas?

Thanks!

2 posts - 2 participants

Read full topic

Z2M with Sonoff Dongle E stopped working after OS upgrade to 13.2

$
0
0

Hi,

today I upgraded the Raspberry Pi HA OS to 13.2.

Afterwards, Z2M with the Sonoff Dongle E stopped working and I have no idea how to make it work again.

Configuration as follows:

The firmware for the dongle is on the latest current version (I think it’s 7.4.4). That firmware worked fine for a few weeks now, but the whole thing stopped working after upgrading HA OS to 13.2.

I reflashed the most current firmware, rebootet my Pi4, removed the USB extension cable to connect the Sonoff directly to the Pi, also used a different USB slot… Nothing works. I always get this:

[18:58:27] INFO: Preparing to start...
[18:58:27] INFO: Socat not enabled
[18:58:30] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2024-10-23 18:58:36] info: 	z2m: Logging to console, file (filename: log.log)
[2024-10-23 18:58:36] info: 	z2m: Starting Zigbee2MQTT version 1.40.2 (commit #unknown)
[2024-10-23 18:58:36] info: 	z2m: Starting zigbee-herdsman (2.1.3)
[2024-10-23 18:58:37] info: 	zh:ember: Using default stack config.
[2024-10-23 18:58:37] info: 	zh:ember: ======== Ember Adapter Starting ========
[2024-10-23 18:58:37] info: 	zh:ember:ezsp: ======== EZSP starting ========
[2024-10-23 18:58:37] info: 	zh:ember:uart:ash: ======== ASH Adapter reset ========
[2024-10-23 18:58:37] info: 	zh:ember:uart:ash: RTS/CTS config is off, enabling software flow control.
[2024-10-23 18:58:37] info: 	zh:ember:uart:ash: Serial port opened
[2024-10-23 18:58:37] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-10-23 18:58:40] info: 	zh:ember:uart:ash: ======== ASH Adapter reset ========
[2024-10-23 18:58:40] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-10-23 18:58:42] info: 	zh:ember:uart:ash: ======== ASH Adapter reset ========
[2024-10-23 18:58:42] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-10-23 18:58:45] info: 	zh:ember:uart:ash: ======== ASH Adapter reset ========
[2024-10-23 18:58:45] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-10-23 18:58:47] info: 	zh:ember:uart:ash: ======== ASH Adapter reset ========
[2024-10-23 18:58:47] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-10-23 18:58:50] error: 	z2m: Error while starting zigbee-herdsman
[2024-10-23 18:58:50] error: 	z2m: Failed to start zigbee
[2024-10-23 18:58:50] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-10-23 18:58:50] error: 	z2m: Exiting...
[2024-10-23 18:58:50] error: 	z2m: Error: Failed to start EZSP layer with status=HOST_FATAL_ERROR.
    at EmberAdapter.initEzsp (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:684:19)
    at EmberAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:1583:24)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:137:29)
    at Zigbee.start (/app/lib/zigbee.ts:69:27)
    at Controller.start (/app/lib/controller.ts:161:27)
    at start (/app/index.js:154:5)

Any ideas? I am out of ideas…

1 post - 1 participant

Read full topic

Alexa Echo 5 Thread Border Router

$
0
0

Hi- Does anyone know if Amazon supports (or plans to support) Thread Border Router on Echo gen5? Seems odd that they would have TBR on gen4, but then drop it on gen5 ?

I’ve been using a lot of Alexa Echo devices, and looking to start doing Thread-Matter things. But no TBR on gen5?

The only Thread network that shows up in HA is from my Apple TV. But I’ve got Echo 4 and Echo 5 devices. I would like to have Thread in an outbuilding, which is not radio visible from main building, but connected by Ethernet. I’m planning on two different Thread networks. Any idea if I can actually do TBR thru Echo?

1 post - 1 participant

Read full topic


Capturing a stream being sent to a smart speaker, interupting it, then resuming it?

$
0
0

I’m using Google smart speakers to provide voice notifications and reminders to people. For example, telling them when the alarm has been armed or disarmed, or that there is motion in a particular area.

Mostly I’m doing this by using text to speech, playing a per-recorded, or connecting the speaker to a stream.

So far, this is pretty effective, the only problem is if the smart speaker is in use at the time. When the notification interrupts what is playing but doesn’t resume it when it’s finished.

Is there an easy\simply way to capture whatever is being played on the speaker at a specific moment so that I can start it up again once the notification has finished.

I don’t mean actually record the stream, more just find what it’s source is and then cast that source again after the notification is done.

For example, if they’re listening to a podcast on Spotify I’d like to be able to capture the source of that podcast in some way, such as storing the URL\stream address in a text helper, and then use that URL\stream as a media source after the notification has finished.

2 posts - 2 participants

Read full topic

Automation Blueprint not working

$
0
0

Hi all,

after nearly 2 weeks of reading, fixing, reading and fixing again, I want to try my luck here…

After a lot (I really mean A LOT) of troubleshooting, I finally wanted to create my own heating automation for my Aqara E1 TRVs. I managed to create a blueprint that creates an automation. However, I cannot get this automation to run.

My troubleshooting so far makes me believe, that something is wrong with the use of variables in my blueprint. If I create an automation with this blueprint, and I test the if conditions, all of them using variables seem to fail. But whatever I try, I cannot get it to work. I read so lot about blueprints, triggers, actions, inputs, variables and so on, but I have to admit that I have now reached the end of my knowledge.

I really hope someone can point me in the right direction… even ChatGPT and Gemini gave up already :smiley:

This is my blueprint so far:

blueprint:
  name: "\U0001F525 Aqara E1 Heating"
  author: veniplex
  homeassistant:
    min_version: 2024.9.3
  description: "Set the current temperature on an Aqara E1 TRV from an external sensor."
  domain: automation
  
  ### INPUTS
  input:
    radiator_section:
      name: "Radiator"
      icon: mdi:thermostat
      input:
        radiator:
          name: "Aqara E1 Device"
          description: "`climate`\n\nSelect the Aqara E1 device to be controlled."
          selector:
            entity:
              multiple: false
              filter:
                - integration: mqtt
                  domain: climate
    thermostat_section:
      name: Thermostats
      icon: mdi:thermometer
      input:
        room_thermostat:
          name: Room Thermostat
          description: "`sensor`\n\nSelect the thermostat that measures the temperature in the room."
          selector:
            entity:
              multiple: false
              filter:
                - domain: sensor
                  device_class: temperature
        outside_thermostat:
          name: Outside Thermostat
          description: "`sensor`\n\nSelect the thermostat (or `sensor` from a weather integration) that measures the outside temperature for your location."
          selector:
            entity:
              multiple: false
              filter:
                - domain: sensor
                  device_class: temperature
    temperature_section:
      name: Temperatures
      icon: mdi:home-thermometer-outline
      input:
        temperature_antifreeze:
          name: "Static Frost Protection Temperature"
          description: "`input_number`\n\nSet the minimum temperature to prevent the heaters from freezing (Recommended: min. 8 °C)."
          default: 8
          selector:
            number:
              min: 5
              max: 30
              unit_of_measurement: "°C"
              mode: slider
        temperature_antifreeze_helper:
          name: "Frost Protection Temperature Helper"
          description: "`input_number`\n\nSet the minimum temperature to prevent the heaters from freezing via a helper entity. This allows you to change the temperature from your dashboard. If no helper entity is selected, the static frost protection temperature will be used."
          default:
          selector:
            entity:
              multiple: false
              filter:
                - domain: input_number
        temperature_eco:
          name: "Static Eco Temperature"
          description: "`input_number`\n\nSet the eco temperature to use when e.g. no one is at home (Recommended: 16 - 18 °C)."
          default: 18
          selector:
            number:
              min: 5
              max: 30
              unit_of_measurement: "°C"
              mode: slider
        temperature_eco_helper:
          name: "Eco Temperature Helper"
          description: "`input_number`\n\nSet the eco temperature to use when e.g. no one is at home. This allows you to change the temperature from your dashboard. If no helper entity is selected, the static eco temperature will be used."
          default:
          selector:
            entity:
              multiple: false
              filter:
                - domain: input_number
        temperature_comfort:
          name: "Static Comfort Temperature"
          description: "`input_number`\n\nSet the comfort temperature to use when e.g. someone is at home (Recommended: 18 - 22 °C)."
          default: 22
          selector:
            number:
              min: 5
              max: 30
              unit_of_measurement: "°C"
              mode: slider
        temperature_comfort_helper:
          name: "Comfort Temperature Helper"
          description: "`input_number`\n\nSet the comfort temperature to use when e.g. someone is at home. This allows you to change the temperature from your dashboard. If no helper entity is selected, the static comfort temperature will be used."
          default:
          selector:
            entity:
              multiple: false
              filter:
                - domain: input_number
        temperature_outside:
          name: "Static Outside Temperature"
          description: "`input_number`\n\nSet the outside temperature at which the radiator should be set to frost protection or turned off (see advanced settings)."
          default: 22
          selector:
            number:
              min: 5
              max: 30
              unit_of_measurement: "°C"
              mode: slider
        temperature_outside_helper:
          name: "Outside Temperature Helper"
          description: "`input_number`\n\nSet the outside temperature at which the radiator should be set to frost protection or turned off (see advanced settings). This allows you to change the target temperature from your dashboard. If no helper entity is selected, the static outside temperature will be used."
          default:
          selector:
            entity:
              multiple: false
              filter:
                - domain: input_number
    schedule_section:
      name: Schedules
      icon: mdi:clock-outline
      input:
        schedule_eco:
          name: Eco Schedule
          description: "`schedule`\n\nSelect a schedule for heating to eco temperature."
          selector:
            entity:
              multiple: false
              filter:
                - domain: schedule
        schedule_comfort:
          name: Comfort Schedule
          description: "`schedule`\n\nSelect a schedule for heating to comfort temperature."
          selector:
            entity:
              multiple: false
              filter:
                - domain: schedule
    presence_section:
      name: Presence
      icon: mdi:location-enter
      input:
        presence_person:
          name: "Person(s)"
          description: "`person`\n\nSelect one or more person entities to activate comfort heating only if someone is at home. Otherwise heat on eco temperature."
          default: []
          selector:
            entity:
              multiple: true
              filter:
                - domain: person
        presence_helper:
          name: "Presence Helper"
          description: "`input_boolean`\n\nSelect a helper entity of type `input_boolean` which represents the 'someone is at home' state. Make sure this helper is set to `on` if someone is at home and `off` if nobody is at home."
          default:
          selector:
            entity:
              multiple: false
              filter:
                - domain: input_boolean
    window_section:
      name: Window sensors
      icon: mdi:blinds-vertical
      input:
        window_windows:
          name: "Window(s)"
          description: "`binary_sensor`\n\nSelect one or more window sensors. These are used to decide if heating should be turned on or off."
          default: []
          selector:
            entity:
              multiple: true
              filter:
                - domain: binary_sensor
    advanced_section:
      name: Advanced Settings
      icon: mdi:tools
      collapsed: true
      input:
        advanced_frost_protection:
          name: "Frost Protection"
          description: "`boolean`\n\nEnable (default) or disable frost protection. This will always use the frost protection temperature instead of turning the radiator completley off."
          default: true
          selector:
            boolean:
        advanced_window_detection:
          name: Window Detection
          description: "`boolean`\n\nEnable or disable (default) the window detection on the Aqara E1 device. It is recommended to only activate this if no window sensors are set."
          default: false
          selector:
            boolean:
        advanced_child_lock:
          name: Child Lock
          description: "`boolean`\n\nEnable (default) or disable child lock on the Aqara E1 device. This prevents accidental manual changes on the radiator itself. It can be disabled manually on the radiator or in the entity settings."
          default: true
          selector:
            boolean:
        advanced_valve_detection:
          name: Valve Detection
          description: "`boolean`\n\nEnable (default) or disable valve detection on the Aqara E1 device. This allows the device to detect problems with adjusting the valve."
          default: true
          selector:
            boolean:
        # advanced_update_interval:
        #   name: "Update Interval"
        #   description: "`input_number`\n\nSet the interval (in minutes) to update the radiator settings and current temperatures, not target temperatures, so a manual change is still possible (Recommended: 15 minutes)."
        #   default: 15
        #   selector:
        #     number:
        #       min: 1
        #       max: 60
        #       unit_of_measurement: "minutes"
        #       mode: slider
        # advanced_calibration_interval:
        #   name: "Calibration Interval"
        #   description: "`input_number`\n\nSet the interval (in hours) to trigger a calibration on the radiator (Recommended: 168 hours / 7 days)."
        #   default: 23
        #   selector:
        #     number:
        #       min: 1
        #       max: 23
        #       unit_of_measurement: "hours"
        #       mode: slider
        advanced_window_opened_interval:
          name: "Windows Opened Interval"
          description: "`input_number`\n\nSet the interval (in seconds) to trigger at opened windows. (Recommended: 15 seconds)."
          default: 15
          selector:
            number:
              min: 1
              max: 60
              unit_of_measurement: "seconds"
              mode: slider
        advanced_window_closed_interval:
          name: "Windows Closed Interval"
          description: "`input_number`\n\nSet the interval (in seconds) to trigger at closed windows. (Recommended: 15 seconds)."
          default: 15
          selector:
            number:
              min: 1
              max: 60
              unit_of_measurement: "seconds"
              mode: slider

### VARIABLES
# see: https://www.home-assistant.io/docs/blueprint/schema/#blueprint-inputs-in-templates
trigger_variables:
  radiator: !input radiator
  room_thermostat: !input room_thermostat
  outside_thermostat: !input outside_thermostat
  temperature_antifreeze: !input temperature_antifreeze
  temperature_antifreeze_helper: !input temperature_antifreeze_helper
  temperature_eco: !input temperature_eco
  temperature_eco_helper: !input temperature_eco_helper
  temperature_comfort: !input temperature_comfort
  temperature_comfort_helper: !input temperature_comfort_helper
  temperature_outside: !input temperature_outside
  temperature_outside_helper: !input temperature_outside_helper
  presence_person: !input presence_person
  advanced_frost_protection: !input advanced_frost_protection
  advanced_window_detection: !input advanced_window_detection
  advanced_child_lock: !input advanced_child_lock
  advanced_valve_detection: !input advanced_valve_detection
  advanced_window_opened_interval: !input advanced_window_opened_interval
  advanced_window_closed_interval: !input advanced_window_closed_interval

### TRIGGERS
triggers:
  # Trigger the automation at specified intervals for updates
  - trigger: time_pattern
    minutes: '/15'
    alias: "Update temperature on radiator every 15 minutes"
    id: "trigger_temperature"
  - trigger: template
    value_template: >
      {{ now().day % 7|int == 0 }}
    alias: "Calibrate radiator every 7 days"
    id: "trigger_calibration"
  # Trigger when any window sensor changes to open (on)
  - trigger: state
    entity_id: !input window_windows
    to: "on"
    for:
      hours: 0
      minutes: 0
      seconds: !input advanced_window_opened_interval
    alias: "A window was opened"
    id: "trigger_all"
  # Trigger when any window sensor changes to close (off)
  - trigger: state
    entity_id: !input window_windows
    to: "off"
    for:
      hours: 0
      minutes: 0
      seconds: !input advanced_window_closed_interval
    alias: "A window was closed"
    id: "trigger_all"
  # Trigger when someone enters home
  - trigger: zone
    entity_id: !input presence_person
    zone: zone.home
    event: enter
    id: "trigger_all"
  # Trigger when someone leaves home
  - trigger: zone
    entity_id: !input presence_person
    zone: zone.home
    event: leave
    id: "trigger_all"
  # Trigger when automations are reloaded
  - trigger: event
    event_type:
      - automation_reloaded
      - core_config_updated
    alias: "The automation was reloaded or config was changed"
    id: "trigger_all"
  # Trigger when Home Assistant is started
  - trigger: homeassistant
    event: start
    alias: "Home Assistant was started"
    id: "trigger_all"

variables:
  temperature_antifreeze_calculated: "{{ (temperature_antifreeze_helper | default(temperature_antifreeze)) | float }}"
  temperature_eco_calculated: "{{ (temperature_eco_helper | default(temperature_eco)) | float }}"
  temperature_comfort_: "{{ (temperature_comfort_helper | default(temperature_comfort)) | float }}"
  temperature_outside_calculated: "{{ (temperature_outside_helper | default(temperature_outside)) | float }}"

### CONDITIONS
conditions: []

### ACTIONS
actions:
  - sequence:
    - if:
        - condition: trigger
          id: "trigger_all"
      then:
        - alias: "Wenn die Außentemperatur höher als die Außen-Zieltemperatur ist..."
          if:
            - condition: template
              value_template: "{{ states(outside_thermostat) | float >= temperature_outside_calculated | float }}"
          then:
            - alias: "Und 'advanced_frost_protection' ist auf 'true' gesetzt ist..."
              if:
                - condition: template
                  value_template: "{{ is_state(advanced_frost_protection, 'true') }}"
              then:
                - alias: "Dann stelle die Heizung auf Frost-Protection-Temperatur"
                  action: climate.set_temperature
                  metadata: {}
                  data:
                    temperature: "{{ temperature_antifreeze_calculated | float }}"
                  target:
                    entity_id: !input radiator
                - alias: "Und auf heizen."
                  action: climate.set_hvac_mode
                  target:
                    entity_id: !input radiator
                  data:
                    hvac_mode: heat
              else:
                - alias: "Sonst schalte die Heizung aus."
                  action: climate.set_hvac_mode
                  target:
                    entity_id: !input radiator
                  data:
                    hvac_mode: off
        - alias: "Wenn die Außentemperatur niedriger als die Außen-Zieltemperatur ist..."
          if:
            - condition: template
              value_template: "{{ states(outside_thermostat) | float < temperature_outside_calculated | float }}"
          then:
          - alias: "Und der Komfortzeitplan eingeschaltet ist..."
            if:
              - condition: state
                entity_id: !input schedule_comfort
                state: "on"
            then:
              - alias: "Und jemand ist zuhause..."
                if:
                  - condition: or
                    conditions:
                    - condition: state
                      entity_id: !input presence_person
                      state: "home"
                    - condition: state
                      entity_id: !input presence_helper
                      state: "on"
                then:
                  - alias: "Und alle Fenster geschlossen sind..."
                    if:
                      - condition: state
                        entity_id: !input window_windows
                        state: "off"
                    then:
                      - alias: "Dann stelle die Heizung auf Komfort-Temperatur"
                        action: climate.set_temperature
                        metadata: {}
                        data:
                          temperature: "{{ temperature_comfort_calculated | float }}"
                        target:
                          entity_id: !input radiator
                      - alias: "Und auf heizen."
                        action: climate.set_hvac_mode
                        target:
                          entity_id: !input radiator
                        data:
                          hvac_mode: heat
                    else:
                      - alias: "Sonst, wenn 'advanced_frost_protection' ist auf 'true' gesetzt ist..."
                        if:
                          - condition: template
                            value_template: "{{ is_state(advanced_frost_protection, 'true') }}"
                        then:
                          - alias: "Dann stelle die Heizung auf Frost-Protection-Temperatur"
                            action: climate.set_temperature
                            metadata: {}
                            data:
                              temperature: "{{ temperature_antifreeze_calculated | float }}"
                            target:
                              entity_id: !input radiator
                          - alias: "Und auf heizen."
                            action: climate.set_hvac_mode
                            target:
                              entity_id: !input radiator
                            data:
                              hvac_mode: heat
                        else:
                          - alias: "Sonst schalte die Heizung aus."
                            action: climate.set_hvac_mode
                            target:
                              entity_id: !input radiator
                            data:
                              hvac_mode: off
                else:
                  - alias: "Und alle Fenster geschlossen sind..."
                    if:
                      - condition: state
                        entity_id: !input window_windows
                        state: "off"
                    then:
                      - alias: "Dann stelle die Heizung auf Eco-Temperatur"
                        action: climate.set_temperature
                        metadata: {}
                        data:
                          temperature: "{{ temperature_eco_calculated | float }}"
                        target:
                          entity_id: !input radiator
                      - alias: "Und auf heizen."
                        action: climate.set_hvac_mode
                        target:
                          entity_id: !input radiator
                        data:
                          hvac_mode: heat
                    else:
                      - alias: "Sonst, wenn 'advanced_frost_protection' ist auf 'true' gesetzt ist..."
                        if:
                          - condition: template
                            value_template: "{{ is_state(advanced_frost_protection, 'true') }}"
                        then:
                          - alias: "Dann stelle die Heizung auf Frost-Protection-Temperatur"
                            action: climate.set_temperature
                            metadata: {}
                            data:
                              temperature: "{{ temperature_antifreeze_calculated | float }}"
                            target:
                              entity_id: !input radiator
                          - alias: "Und auf heizen."
                            action: climate.set_hvac_mode
                            target:
                              entity_id: !input radiator
                            data:
                              hvac_mode: heat
                        else:
                          - alias: "Sonst schalte die Heizung aus."
                            action: climate.set_hvac_mode
                            target:
                              entity_id: !input radiator
                            data:
                              hvac_mode: off
            else:
              - alias: "Sonst, wenn Eco-Zeitplan eingeschaltet ist..."
                if:
                  - condition: state
                    entity_id: !input schedule_eco
                    state: "on"
                then:
                  - alias: "Und alle Fenster geschlossen sind..."
                    if:
                      - condition: state
                        entity_id: !input window_windows
                        state: "off"
                    then:
                      - alias: "Dann stelle die Heizung auf Eco-Temperatur"
                        action: climate.set_temperature
                        metadata: {}
                        data:
                          temperature: "{{ temperature_eco_calculated | float }}"
                        target:
                          entity_id: !input radiator
                      - alias: "Und auf heizen."
                        action: climate.set_hvac_mode
                        target:
                          entity_id: !input radiator
                        data:
                          hvac_mode: heat
                    else:
                      - alias: "Sonst, wenn 'advanced_frost_protection' ist auf 'true' gesetzt ist..."
                        if:
                          - condition: template
                            value_template: "{{ is_state(advanced_frost_protection, 'true') }}"
                        then:
                          - alias: "Dann stelle die Heizung auf Frost-Protection-Temperatur"
                            action: climate.set_temperature
                            metadata: {}
                            data:
                              temperature: "{{ temperature_antifreeze_calculated | float }}"
                            target:
                              entity_id: !input radiator
                          - alias: "Und auf heizen."
                            action: climate.set_hvac_mode
                            target:
                              entity_id: !input radiator
                            data:
                              hvac_mode: heat
                        else:
                          - alias: "Sonst schalte die Heizung aus."
                            action: climate.set_hvac_mode
                            target:
                              entity_id: !input radiator
                            data:
                              hvac_mode: off
      else:
        - alias: "Ansonsten, wenn die Automatisierung durch 'trigger_temperature' ausgelöst wurde..."
          if:
            - condition: trigger
              id: "trigger_temperature"
          then:
            # - alias: "Dann setze den Sensor am Radiator auf 'external'"
            #   action: mqtt.publish
            #   data:
            #     topic: "zigbee2mqtt/{{ state_attr(variables.radiator, 'friendly_name') }}/set"
            #     payload: '{"sensor": "external"}'
            # - alias: "Und setze die aktuelle Temperatur auf die Temperatur des Raumthermostats"
            #   action: mqtt.publish
            #   data:
            #     topic: "zigbee2mqtt/{{ state_attr(variables.radiator, 'friendly_name') }}/set"
            #     payload: '{"external_temperature_input": {{ states(variables.room_thermostat) }}}'
            - alias: "Setze den Radiator und zusätzliche Einstellungen"
              action: mqtt.publish
              data:
                topic: "zigbee2mqtt/{{ state_attr(radiator, 'friendly_name') }}/set"
                payload: >
                  {
                    "sensor": "external",
                    "external_temperature_input": {{ states(room_thermostat) }},
                    "child_lock": {{ is_state(advanced_child_lock, 'true') | lower }},
                    "window_detection": {{ is_state(advanced_window_detection, 'true') | lower }},
                    "valve_detection": {{ is_state(advanced_valve_detection, 'true') | lower }}
                  }
          else:
            - alias: "Ansonsten, wenn die Automatisierung durch 'trigger_calibration' ausgelöst wurde..."
              if:
                - condition: trigger
                  id: "trigger_calibration"
              then:
                - alias: "Dann Kalibriere den Radiator."
                  action: mqtt.publish
                  data:
                    topic: "zigbee2mqtt/{{ state_attr(radiator, 'friendly_name') }}/set"
                    payload: '{"calibrate": "calibrate"}'

1 post - 1 participant

Read full topic

Waste Collection Schedule Display Icons

$
0
0

Hi All
I have Waste Collection Schedule configured after a struggle and I now have a test dashboard where I have added it. It has collection type where it says, for today Blue bin in 1 days. I’m struggling to get it to do much more, could anyone give me a simple way to add a coloured bin Icon for the collection, that is a Blue or Grey bin and also an alert on the day and day before
many thanks Pete

1 post - 1 participant

Read full topic

Tapo C200 problem

$
0
0

Hi,
I’m in the process of updating our surveillance cameras and I’ve been testing around quite a bit. Have landed on Tapo and have tested both C200 and C220.
The C220 video stream flickered/lagging and I thought it was due to the higher resolution. Returned it and bought a C200, hoping to get a smooth video stream, but same problem.

Tried now to run the video stream via VLC and then everything works great. In motioneye both camera works but the intergration was pushed to hard, even then I set low resolution. I also tried frigate and the camera also worked there, but i didn’t like the 10 sec video clips.

Why can’t I get it to work with home assistants camera integration? Anyone else had the same problem? Is there any problem with the camera intergration?

(I prefer to use them in the camera integration as I like the functions with recording and snapshots.)

4 posts - 2 participants

Read full topic

Voice Assistant with M5Stack Atom Echo echoes without wake word being used and/or detected

$
0
0

One of my M5Stack Atom Echo is listening in without the wake word being used/detected and responding with: “Sorry, I couldn’t understand that!”

From the logs, I pulled a very strange response:

DEBUG:wyoming_piper.handler:Synthesize(text='Sorry, I am not aware of any area called human beings and the start of the sun, the disperse, the change of the kingdom, the people of the world, the power of the kingdom, the change of the world.', voice=SynthesizeVoice(name='en_GB-alan-low', language=None, speaker=None))

Even in the middle of the night when all is quiet, I hear my M5Stack Atom Echo respond: “Sorry, I couldn’t understand that!”

Home Assistant

  • Core2024.10.3
  • Supervisor2024.10.2
  • Operating System13.2
  • Frontend20241002.3
  • Whisper (2.2.0)
  • Piper (1.5.2),
  • openWakeWord (1.10.0),
  • ESPHome (beta) (2024.10.0)

1 post - 1 participant

Read full topic

Notification not send

$
0
0

Hi,

I have an automation to check status of my water and gas-meter. The meter is from Smartgateways. The automation checks the sensor gasmeter_lastchanged. This keeps track of changes received from MQTT. Approx. every 30 seconds an update is received over MQTT.
So I want a notification when this sensor is above 30 seconds for over 15 minutes so I know that I need to check.
I created this YAML code:

alias: Gasmeter alive check
description: Check of gasmeter nog live is en na 15 minuten een mail
triggers:
  - entity_id:
      - sensor.gasmeter_lastchanged
    for:
      hours: 0
      minutes: 15
      seconds: 0
    above: 30
    trigger: numeric_state
    conditions: []
actions:
  - metadata: {}
    data:
      message: >-
        Gasmeter al meer dan 15 minuten geen waarde doorgegeven. Check status
        van device op IP: 192.168.xxx.xxx
      title: Gasmeter not reporting
    action: notify.email_1
  - action: notify.persistent_notification
    metadata: {}
    data:
      message: >-
        Gasmeter al meer dan 15 minuten geen waarde doorgegeven. Check status
        van device op IP: 192.168.xxx.xxx
      title: Gasmeter not reporting
mode: single

sensor was down for over a day a few days ago and no notification send. Tried to test by setting value to above 5 seconds to trigger notification. This did not work too. Have used the Automation Editor to build this one.

What am I not doing right to get this working. Thank you for the support.

Bernard

6 posts - 2 participants

Read full topic

Start tomorrow at

$
0
0

Hi,
coming from fhem, I have been using HA since more than a year now.
Is there a (simpe) possibility to change an entity just once?
What I want:
Tell (eg) alexa: start heater tomorrow 5 am?
Or at least in the gui or app?
Best regards and thanks in advance,
Otto

1 post - 1 participant

Read full topic


GoveeMQTT+Google Home/Assistant- Bluetooth devices Offline

$
0
0

Having a weird issue with the GoveeMQTT and Google Assistant through Nabu Casa. All of my Govee lights that have LAN control show up in Google Home and work fine.

My Issue is that I have two T1 Pros that are Bluetooth only, and show up in MQTT but when I expose the light entity through the voice assistant settings in HA, they always show in Google Home as offline

If I expose the switch entity its shows up online and works in Google Home. Now if turn on/off the switch in Google Home the light entity will briefly show online and then go right back to offline if I try to open it. This happens to both T1 Pros.

Any Idea what could be causing this?


1 post - 1 participant

Read full topic

Midea heat-pump management

$
0
0

I’ve installed a Senville heat pump a few years ago with a few (3) air handlers, and it does what it’s supposed to do (heat and cool), except I can’t seem to find a way to keep my home at a target temperature level.
I use it mainly for heat and room temperature is usually too high, and fluctuates quite a bit. As the winter is coming, this is going to become more of an issue.

I’ve tried a few things over the past 2 seasons:

  • Used the Midea cloud integration: felt a bit annoying, flaky and limited
  • Replaced Senville WiFi dongle by ESP-01 based-dongles running ESPhome ( https://esphome.io/components/climate/midea.html )
  • Added a transistor to act as a remote and transmit IR as to use the midea_ac.follow_me action to report the room temperature.

So far the follow_me temperature is updated through an automation that runs every minute, and sets an average temperature from multiple sensors in the zone to the input temperature of the unit. I’ve also set this automation to control the fan speed based on difference between target temperature and actual temperature as the “Fan Auto” mode didn’t seem to do a great job.

As for the input temperature, there is a caveat: it seems to have integer precision, so it goes from 20 to 21C with nothing in between, and the difference seems to be used internally as a call for heat (or cool, based on mode, Add midea_ir.follow_me action · Issue #1627 · esphome/feature-requests · GitHub ).

I looked into Better Thermostat and it’s a good match in term of features I would like to have (windows/door sensors, etc), but its really targeted towards TRVs and was doing an odd job when I tried it “as this”.

Anything that I’m missing ? Anyone with similar setup that was able to solve this ?

Thanks

1 post - 1 participant

Read full topic

Help with changing icon colour in picture element

$
0
0

hey all,

i have recently got a 3d printer and hooked it up to home assistant and have been using some pre made templates to create a dashboard,

i have added a " workshop ceiling light " button entity but i wish to have it use clear colours when the light is on and off (green on and red off) but i am unsure how to edit the template to help me with this

here is the yaml

type: picture-elements
elements:
  - type: conditional
    conditions:
      - entity: sensor.bambu_a1_printer_print_status
        state_not: offline
    elements:
      - entity: light.bambu_a1_printer_chamber_light
        type: state-icon
        style:
          top: 45%
          left: 89%
          "--mdc-icon-size": 2.6em
        tap_action:
          action: toggle
      - entity: light.workshop_ceiling_light
        type: state-icon
        style:
          top: 60%
          left: 89%
          "--mdc-icon-size": 2.6em
        tap_action:
          action: toggle
      - entity: sensor.bambu_a1_printer_print_status
        type: state-label
        style:
          top: 82.5%
          left: 78.8%
          font-size: 0.75em
          color: "#FFFFFF"
      - type: conditional
        conditions:
          - entity: image.bambu_a1_printer_cover_image
            state_not: unavailable
        elements:
          - type: custom:hui-element
            card_type: picture-entity
            show_name: false
            show_state: false
            entity: image.bambu_a1_printer_cover_image
            style:
              top: 61.5%
              left: 47%
              transform: translate(-45%, -40%) scale(75%, 75%)
              "--ha-card-border-width": 0px
              "--ha-card-background": none
          - entity: sensor.bambu_a1_printer_print_progress
            type: state-badge
            tap_action:
              action: none
            style:
              top: 18.5%
              left: 74%
              font-size: 1em
              color: rgba(0,0,0,0)
              "--label-badge-red": "#11739D"
      - entity: sensor.bambu_a1_printer_nozzle_temperature
        type: state-badge
        style:
          top: 35%
          left: 46.5%
          font-size: 0.8em
          color: rgba(0,0,0,0)
      - entity: sensor.bambu_a1_printer_bed_temperature
        type: state-badge
        style:
          top: 95%
          left: 46.5%
          font-size: 0.8em
          color: rgba(0,0,0,0)
card_mod:
  style: null
image: /local/media/bambuprinter/a1_lightoff.png
entity: light.bambu_a1_printer_chamber_light
state_image:
  unavailable: /local/media/bambuprinter/a1_lightoff.png
  "on": /local/media/bambuprinter/a1_lighton.png
  "off": /local/media/bambuprinter/a1_lightoff.png

image

any help is appreciated

1 post - 1 participant

Read full topic

Google Home Integration by Cloudflare Zero Trust

$
0
0

I have set up a Cloudflare Zero Trust tunnel in the Cloudflared plugin to connect Google Home using it as instructed below:

How to integrate Google Assistant with Home Assistant without a subscription

Unfortunately, after creating a project according to the tutorial, my HAOS does not automatically detect the Google Assistant integration, so I am concerned that the problem is the secured tunnel. I am using Cloudflare Zero Trust with SSL Full (strict).

Does anyone of you use Google Home integration via Cloudflare Zero Trust?

1 post - 1 participant

Read full topic

Removing orphaned entities from browser_mod

$
0
0

There are several topic entries here concerning the removal of orphaned entities, particularly from the Browser_mod integration. Instead of replying to each posting, I am creating a new post and hope if anyone is still looking for a solution, this will be helpful. I came across a discussion yesterday which proved useful. There was a link to Ghost which people have tried with mostly failed attempts. However on that page there is code for a script that actually uses a Ghost Action so you will need to install Ghost, I think. I have pasted the script below. Some that had success with the script have stated they needed to run it many times to remove all of the orphans. With this in mind, I suggest modifying this script by setting mode to restart. It will run until no more orphans exist and then fail when the orphan list is empty.

alias: Delete orphaned database entities-new
sequence:
  - action: homeassistant.list_orphaned_database_entities
    response_variable: orphaned
    data: {}
  - action: recorder.purge_entities
    target:
      entity_id: |
        {{ orphaned.entities }}
    data:
      keep_days: 0
mode: restart
description: ""

1 post - 1 participant

Read full topic

Viewing all 109599 articles
Browse latest View live


Latest Images

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