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

Manual Alarm panel modification

$
0
0

I want to have a simple alarm panel with two options: armed and disarmed

How can I change this?

This always gives me armed away, armed night, armed home and disarmed.

Also how can I sync this with an input boolean properly?
The alarm panel and the input boolean should always have the same state: on/armed and off/disarmed no matter which side changes.

1 post - 1 participant

Read full topic


Do I have too many devices reporting and causing slow downs?

$
0
0

This is a very novice question but is there a way to determine if my z-wave controller and/or host is being overworked by Z-Wave requests?

I recently did a complete re-do of my Z-Wave network with a new Zooz 700 Series Z-Wave Plus S2 USB Stick and I figured it would be a good time to basically start over. I decided to use Z-Wave JS to MQTT since it has more Z-Wave features (I don’t use MQTT Features, though). Everything felt very snappy and fast as I was adding devices but as I neared the end of including my 60 devices everything started to slow wayyyy down, it would take multiple tries to join devices and sending a command takes just ever so slightly longer for a response. And I’ve already had a few devices disconnect, but they reconnected after I pressed the physical button on the deice.

About 20 of these devices are energy monitoring devices so they send some data every 30 seconds back to the hub.

The only think I looked at is the Raspberry Pi’s CPU usage is around 2.1% and Memory is 5.3% so I don’t think its the Pi. But maybe the controller or Z-Wave 2 MQTT is being overworked?

Two extra bits of info:

  1. Almost all devices are joined with S2 Security (maybe 4 or 5 are not)
  2. I know inclusion puts a strain on the network but this sluggishness has persisted for over 24 hours now.

1 post - 1 participant

Read full topic

Extract which device in group triggered automation

$
0
0

I have an automation based on a group of binary sensors. If any of the binary sensors go to “on” a notification is triggered, but I can’t seem to figure out how to use the trigger sensor name in the notification. I tried the following but that just throws an error:

service: notify.family_mobile
data:
  message: The {{trigger.to_state.attributes.friendly_name}} has started running
  title: Dishwasher started

Also tried this:

service: notify.family_mobile
data:
  message: The {{trigger.entity_id.attributes.friendly_name}} has started running
  title: Dishwasher started

1 post - 1 participant

Read full topic

Where has reboot system gone?

$
0
0

I updated to 2022.7 after being on a much earlier version and some of the settings menus have changed. There used to be a page where you could restart the supervisor, restart HA, reboot the system etc. Where has that gone?? There is Settings > System which says “create backups, check logs and reboot your system”, but when you click on System there is nothing there about rebooting!

Am I missing something?

3 posts - 2 participants

Read full topic

Condition on trigger.entity_id

$
0
0

Hello Everyone,
I’m trying to turn on my printer if there is a printjob in queue, but i need to check two things.
If the state of the value of the sensor that triggered the automation is not null and is not unknown

Currently i have this :

alias: 'Imprimante : Allumer si impression en attente'
description: ''
trigger:
  - platform: state
    entity_id:
      - sensor.pc1_printjob
    from: '*'
    to: '*'
  - platform: state
    entity_id:
      - sensor.pc2_printjob
    from: '*'
    to: '*'
  - platform: state
    entity_id:
      - sensor.pc3_printjob
    from: '*'
    to: '*'
  - platform: state
    entity_id:
      - sensor.pc4_printjob
    from: '*'
    to: '*'
action:
  - if:
      - condition: and
        conditions:
          - condition: template
            value_template: '{% if(states('sensor.{{ "trigger.entity_id" }}')) %}{%if (states('sensor.{{ "trigger.entity_id" }}')!='unknown') %}True{% else %}False{% endif %}{% else %}False{% endif %}'
    then:
        - type: turn_on
         device_id: xxxx
         entity_id: switch.imprimante
         domain: switch
mode: single

Can somebody help me?
Thank you.

1 post - 1 participant

Read full topic

Need a bit of assistance with a Switch Template error (I think this is a bug possibly?)

$
0
0

Hello all,

I am getting the below error in my logs and can’t track down the device in the GUI nor by searching my files using Visual Studio Code.

I can’t find “switch.projector_power_2” anywhere in my HA setup. Is it possible something didn’t delete in a background database? Hoping you all can help me get this squashed on my end- and how can I delete the offending item? Thank you all!!

Logger: homeassistant.components.switch
Source: helpers/entity_platform.py:620
Integration: Switch (documentation, issues)
First occurred: 4:19:45 PM (1 occurrences)
Last logged: 4:19:45 PM

Platform template does not generate unique IDs. ID projector_power_switch is already used by switch.projector_power - ignoring switch.projector_power_2

GUI Search for “projector”:

Only place in file system:

1 post - 1 participant

Read full topic

ZigBee Noob Question

$
0
0

So, honestly I’m not sure if I need to ask this question but I’m worried that I’m going to regret not asking it later if I don’t…

I have a sonoff usb ZigBee stick and I added it to my Home Assistant setup earlier
Went swimmingly, recognised straight away and I then added a ZigBee device (an aqara button) again, no issues

However I’ve seen threads around ZigBee and people choosing between zha or zigbee2mqtt and there seemed to be pros and cons… Honestly, I’ve no idea which I’m now using and I’m not sure if it even matters, but just wondering if I should be worrying about it or if I should just continue merrily on my way?

Thanks!

1 post - 1 participant

Read full topic

De-activate helper when other helper is active through buttons

$
0
0

Hello :slight_smile:

I have three buttons (home office, office and vacation). These decide when (or if) my morning routine should run. Each button toggles the state of three different helpers (one for each mode)

Obviously I can only have one of these buttons active at once as it would crash if both office routine should go off, but vacation is also ticked…

I think this can be done within the automation, but I think it would be more clean if I did it so when you click one button, the ‘on’ state also switches the two other buttons to off.

This is what I have so far:

type: custom:button-card
entity: input_boolean.helper_toggle_vacation
show_state: false
size: null
show_name: false
show_entity_picture: true
state:
  - value: 'on'
    entity_picture: /local/custom_icons/vacation1.png
  - value: 'off'
    entity_picture: /local/custom_icons/vacation0.png

I would guess I need to add some code after - value: ‘on’ but I am not sure what as I don’t know what to google…

Thanks for all help

1 post - 1 participant

Read full topic


Zigbee2mqtt says it is connecting but never does

$
0
0

I recently got the sonoff zigbee dongle and have gone through the steps to get it up and running however I’m stuck. I get the following message on the log:


It says connecting but never does!
Anyone has any idea how to fix this? I also get a “502 bad request” whenever I try to open zigbee2mqtt I assume it’s because I cannot connect.

Thanks in advance

2 posts - 2 participants

Read full topic

Using variables with browser_mod to create pop_up media_player remotes

$
0
0

Hi all,
I am relatively new home assistant and could use some help/advice on how to create pop up remotes for media players, using variables…if that is possible. Or if someone has a better approach i am all ears.

Basically i have a 3 cards that use the mini media player. All of which are Apple TVs

media cards

For the Master Bedroom card, I am using browser_mod to replace the “more info” with a grid card that has another mini media card that uses the shortcuts/buttons for my favorite apps as well as custom button cards that uses call services for remote.send_commands.

For the master bedroom, it works exacly as i would like. I want to be able to do this for the other 2 apples tvs. If i copy and paste the code 3 times (and just change the entity to the other apple_tvs) it will work. But i was kind of hoping there was better/cleaner way to accomplish this. In case i change something, i’d rather not have to change it 3 times. Maybe using a variable to pass the different entities (media_player.apple_tv_master_bedroom, media_player.apple_tv_master_kitchen, media_player.apple_tv_master_kitchen). I am using the Raw Config editor to add the popup_cards.

i have used variables within a script/button combo. So am a little familiar with using them in HA, but just not sure how (if at all) to do it in this scenario.

here is YAML

views:
  - theme: Mushroom
    title: TV
    icon: mdi:television
    popup_cards:
      media_player.apple_tv_master_bedroom:
        title: Master Bedroom Remote
        card:
          type: grid
          square: false
          columns: 1
          cards:
            - type: custom:mini-media-player
              name: Master Bedroom
              entity: media_player.apple_tv_master_bedroom
              volume_stateless: false
              group: false
              hide:
                power: true
                source: true
                name: true
                play_pause: true
                prev: true
                next: true
                volume: true
                info: true
                icon: true
                progress: true
              shortcuts:
                hide_when_off: false
                attribute: source
                columns: 6
                column_height: 30
                buttons:
                  - image: /local/logos/remote/disney.png
                    type: source
                    id: Disney+
                  - image: /local/logos/remote/plex.jpeg
                    type: source
                    id: Plex
                  - image: /local/logos/remote/happy_kids.png
                    type: source
                    id: HappyKids.tv
                  - image: /local/logos/remote/youtube.jpeg
                    type: source
                    id: YouTube
                  - image: /local/logos/remote/espn.jpeg
                    type: source
                    id: ESPN
                  - image: /local/logos/remote/nbc_sports.png
                    type: source
                    id: NBC sports
            - square: false
              columns: 3
              type: grid
              cards:
                - type: custom:button-card
                  entity: media_player.apple_tv_master_bedroom
                  icon: mdi:power
                  show_name: false
                  show_state: false
                  size: 10%
                  styles:
                    icon:
                      - color: green
                      - width: 40px
                      - height: 40px
                    card:
                      - border: 0%
                      - margin: 0px
                      - background-image: url('/local/logos/remote/button_background.png')
                      - background-size: cover
                      - background-repeat: no-repeat
                      - height: 50px
                    name:
                      - justify-self: middle
                      - font-weight: null
                      - font-size: 15px
                      - padding-top: 10px
                  tap_action:
                    action: call-service
                    haptic: medium
                    service: media_player.turn_on
                    service_data:
                      entity_id: media_player.apple_tv_master_bedroom
                - type: custom:button-card
                  entity: media_player.apple_tv_master_bedroom
                  icon: mdi:arrow-up-bold
                  show_name: false
                  show_state: false
                  size: 10%
                  styles:
                    icon:
                      - color: white
                      - width: 40px
                      - height: 40px
                    card:
                      - border: 0%
                      - margin: 0px
                      - background-image: url('/local/logos/remote/button_background.png')
                      - background-size: cover
                      - background-repeat: no-repeat
                      - height: 50px
                    name:
                      - justify-self: middle
                      - font-weight: null
                      - font-size: 15px
                      - padding-top: 10px
                  tap_action:
                    action: call-service
                    haptic: medium
                    service: remote.send_command
                    service_data:
                      command: up
                      entity_id: remote.apple_tv_master_bedroom
                - type: custom:button-card
                  entity: media_player.apple_tv_master_bedroom
                  icon: mdi:power
                  show_name: false
                  show_state: false
                  size: 10%
                  styles:
                    icon:
                      - color: red
                      - width: 40px
                      - height: 40px
                    card:
                      - border: 0%
                      - margin: 0px
                      - background-image: url('/local/logos/remote/button_background.png')
                      - background-size: cover
                      - background-repeat: no-repeat
                      - height: 50px
                    name:
                      - justify-self: middle
                      - font-weight: null
                      - font-size: 15px
                      - padding-top: 10px
                  tap_action:
                    action: call-service
                    haptic: medium
                    service: media_player.turn_off
                    service_data:
                      entity_id: media_player.apple_tv_master_bedroom
            - square: false
              columns: 3
              type: grid
              cards:
                - type: custom:button-card
                  entity: media_player.apple_tv_master_bedroom
                  icon: mdi:arrow-left-bold
                  show_name: false
                  show_state: false
                  size: 10%
                  styles:
                    icon:
                      - color: white
                      - width: 40px
                      - height: 40px
                    card:
                      - border: 0%
                      - margin: 0px
                      - background-image: url('/local/logos/remote/button_background.png')
                      - background-size: cover
                      - background-repeat: no-repeat
                      - height: 50px
                    name:
                      - justify-self: middle
                      - font-weight: null
                      - font-size: 15px
                      - padding-top: 10px
                  tap_action:
                    action: call-service
                    haptic: medium
                    service: remote.send_command
                    service_data:
                      command: left
                      entity_id: remote.apple_tv_master_bedroom
                - type: custom:button-card
                  entity: media_player.apple_tv_master_bedroom
                  icon: mdi:power-off
                  show_name: false
                  show_state: false
                  size: 10%
                  styles:
                    icon:
                      - color: white
                      - width: 40px
                      - height: 40px
                    card:
                      - border: 0%
                      - margin: 0px
                      - background-image: url('/local/logos/remote/button_background.png')
                      - background-size: cover
                      - background-repeat: no-repeat
                      - height: 50px
                    name:
                      - justify-self: middle
                      - font-weight: null
                      - font-size: 15px
                      - padding-top: 10px
                  tap_action:
                    action: call-service
                    haptic: medium
                    service: remote.send_command
                    service_data:
                      command: select
                      entity_id: remote.apple_tv_master_bedroom
                - type: custom:button-card
                  entity: media_player.apple_tv_master_bedroom
                  icon: mdi:arrow-right-bold
                  show_name: false
                  show_state: false
                  size: 10%
                  styles:
                    icon:
                      - color: white
                      - width: 40px
                      - height: 40px
                    card:
                      - border: 0%
                      - margin: 0px
                      - background-image: url('/local/logos/remote/button_background.png')
                      - background-size: cover
                      - background-repeat: no-repeat
                      - height: 50px
                    name:
                      - justify-self: middle
                      - font-weight: null
                      - font-size: 15px
                      - padding-top: 10px
                  tap_action:
                    action: call-service
                    haptic: medium
                    service: remote.send_command
                    service_data:
                      command: right
                      entity_id: remote.apple_tv_master_bedroom
            - square: false
              columns: 3
              type: grid
              cards:
                - type: custom:button-card
                  entity: media_player.apple_tv_master_bedroom
                  icon: mdi:menu
                  show_name: false
                  show_state: false
                  size: 10%
                  styles:
                    icon:
                      - color: white
                      - width: 40px
                      - height: 40px
                    card:
                      - border: 0%
                      - margin: 0px
                      - background-image: url('/local/logos/remote/button_background.png')
                      - background-size: cover
                      - background-repeat: no-repeat
                      - height: 50px
                    name:
                      - justify-self: middle
                      - font-weight: null
                      - font-size: 15px
                      - padding-top: 10px
                  tap_action:
                    action: call-service
                    haptic: medium
                    service: remote.send_command
                    service_data:
                      command: menu
                      entity_id: remote.apple_tv_master_bedroom
                - type: custom:button-card
                  entity: media_player.apple_tv_master_bedroom
                  icon: mdi:arrow-down-bold
                  show_name: false
                  show_state: false
                  size: 10%
                  styles:
                    icon:
                      - color: white
                      - width: 40px
                      - height: 40px
                    card:
                      - border: 0%
                      - margin: 0px
                      - background-image: url('/local/logos/remote/button_background.png')
                      - background-size: cover
                      - background-repeat: no-repeat
                      - height: 50px
                    name:
                      - justify-self: middle
                      - font-weight: null
                      - font-size: 15px
                      - padding-top: 10px
                  tap_action:
                    action: call-service
                    haptic: medium
                    service: remote.send_command
                    service_data:
                      command: down
                      entity_id: remote.apple_tv_master_bedroom
                - type: custom:button-card
                  entity: media_player.apple_tv_master_bedroom
                  icon: mdi:home
                  show_name: false
                  show_state: false
                  size: 10%
                  styles:
                    icon:
                      - color: white
                      - width: 40px
                      - height: 40px
                    card:
                      - border: 0%
                      - margin: 0px
                      - background-image: url('/local/logos/remote/button_background.png')
                      - background-size: cover
                      - background-repeat: no-repeat
                      - height: 50px
                    name:
                      - justify-self: middle
                      - font-weight: null
                      - font-size: 15px
                      - padding-top: 10px
                  tap_action:
                    action: call-service
                    haptic: medium
                    service: remote.send_command
                    service_data:
                      command: home
                      entity_id: remote.apple_tv_master_bedroom
    badges: []
    cards:
      - square: false
        columns: 1
        type: grid
        cards:
          - square: false
            columns: 1
            type: grid
            cards:
              - type: custom:mini-media-player
                name: Master Bedroom
                volume_stateless: false
                hide:
                  power: true
                  source: true
                  icon: false
                  name: false
                  play_pause: false
                  prev: false
                  next: false
                  volume: true
                artwork: material
                toggle_power: true
                entity: media_player.apple_tv_master_bedroom
                group: false
                source: full
                icon: phu:apple-tv-box
                info: scroll
                tap_action:
                  action: more-info
                scale: '1.3'
      - square: false
        columns: 1
        type: grid
        cards:
          - square: false
            columns: 1
            type: grid
            cards:
              - type: custom:mini-media-player
                name: Kitchen
                volume_stateless: false
                hide:
                  power: true
                  source: true
                  icon: false
                  name: false
                  play_pause: false
                  prev: false
                  next: false
                  volume: true
                artwork: material
                toggle_power: true
                entity: media_player.apple_tv_kitchen_2
                group: false
                source: full
                icon: phu:apple-tv-box
                info: scroll
                tap_action:
                  action: more-info
                scale: '1.3'
      - square: false
        columns: 1
        type: grid
        cards:
          - square: false
            columns: 1
            type: grid
            cards:
              - type: custom:mini-media-player
                name: Family Room
                volume_stateless: false
                hide:
                  power: true
                  source: true
                  icon: false
                  name: false
                  play_pause: false
                  prev: false
                  next: false
                  volume: true
                artwork: material
                toggle_power: true
                entity: media_player.apple_tv_family_room_2
                group: false
                source: full
                icon: phu:apple-tv-box
                info: scroll
                tap_action:
                  action: more-info
                scale: '1.3'

Thanks in advance.

1 post - 1 participant

Read full topic

Ceiling fan with Tuya integration. Fan works but light is nowhere to be found

$
0
0

I am having trouble setting up a ceiling fan with light. After setting up the Tuya integration following the instructions from the integrations page, the device appears on my dashboard with 1 entity that controls the fan and that works perfectly. However I haven’t been able to find a way to control the light.

The fan/light controller that I’m trying to set up is this one. The amazon page says that the brand is Aubric, although the user manual that came with it says qiachip. I initially set up the device with the Smart Life App and everything works through that app. IR remote remote works without problems. I can also see it on my google home app and control both the light and fan (although there’s no option to control the fan speed through google home).

I also discovered that I can control everything (light, fan speeds, timer for sleep, beeping sound) through the project that I created on the Tuya IoT Platform when setting up the Tuya integration for HASS.

I downloaded the diagnostics from the device page in HASS and all the information seems to be there (switch for the fan, fan speed, light, countdown for the sleep function, beeping) and the status values in the diagnostics reflect the changes that I make with the Smart Life App.

Searching through the topics here I found this post which seems to be pretty much what I want (I think?), adding a new entity to the device to control the light. But here is where I get pretty confused. That post and others that I’ve seen talk about the “Local Tuya” integration but I don’t see any option to add “local tuya” only the “tuya” that is in the integrations page. The post mentions that there should be a dropdown menu to “add entitiy” but I don’t see that option at all when I set up the Tuya integration.

I also took a quick look at the logs through the GUI but there wasn’t anything related to Tuya or the ceiling fan

I’m pretty new to HASS (just installed in yesterday). I’m running Home Assistant core-2022.7.6 using Hass . io with the HassOS image on a raspberry pi 3 model b.

1 post - 1 participant

Read full topic

Adding a trigger to a sensor

$
0
0

Hello. I am a newby trying to get started. I have understood that there should be an option to add triggers to a sensor so it would be possible to determine when a sensor runs. However, I am unable to do that.
Would appreciate greatly a push to the right direction.

configuration.yaml:

sensor: !include sensors.yaml

sensors.yaml:

- platform: template
  sensors:
    night_charge_scheduler:
      unique_id: carchargerids.00001
      friendly_name: Night Charge Scheduler
      value_template: >-
        {# Variables read from Helpers -#}
        {% set charge_time = states('input_number.CarCharge_time') | int -%}
        {% set night_start = states('input_datetime.CarCharge_Night_Start') | truncate(3, False, '.', 0) | int -%}
        {% set night_end = states('input_datetime.CarCharge_Night_End') | truncate(3, False, '.', 0) | int -%}
        {# Setting price addition -#}
        {% set a = {
          "day_tariff": 0.0521,
          "day_peak_tariff": 0.0802,
          "weekend_peak_tariff": 0.0464,
          "night_tariff": 0.0299,
          "contract_price_addition": 0.0024
                  }
        -%}
        {# Gettting Nordpool prices-#}
        {% if state_attr('sensor.nordpool_kwh_ee_eur_3_10_02', 'tomorrow')[23]| string == 'None'  -%}
          {% set prices = state_attr('sensor.nordpool_kwh_ee_eur_3_10_02', 'today') -%}
        {% else -%}
          {% set prices = state_attr('sensor.nordpool_kwh_ee_eur_3_10_02', 'today') +
                          state_attr('sensor.nordpool_kwh_ee_eur_3_10_02', 'tomorrow') -%}
        {% endif -%}
        {# Adding price additions to get final price vector for today + tomorrow -#}
        {% set final_prices = namespace(values = []) -%}
        {% for price in prices -%}
          {% set x = loop.index0 -%}
          {% if loop.index0 < 24 -%}
            {% set hour = loop.index0 -%}
            {% set day = now().weekday() -%}
          {% elif loop.index0 >= 24 -%}
            {% set hour = loop.index0 - 24 -%}
            {% set day = now().weekday() + 1 -%}
          {% endif -%}
          {% if day < 5 and ((hour >= 7 and hour < 9)
                                or (hour >= 12 and hour < 16)
                                or (hour >= 20 and hour < 22))-%}
            {% set final_prices.values = final_prices.values + 
                                [(price + a.day_tariff + a.contract_price_addition) | round(4) ]  -%}
          {% elif day < 5 and ((hour >= 9 and hour < 12)
                                or (hour >= 16 and hour < 20)) -%}
            {% set final_prices.values = final_prices.values +
                                [(price + a.day_peak_tariff + a.contract_price_addition) | round(4) ]   -%}
          {% elif day >= 5 and hour > 16 and hour < 20 -%}
            {% set final_prices.values = final_prices.values +
                                [(price + a.weekend_peak_tariff + a.contract_price_addition) | round(4) ] -%}
          {% else -%}
            {% set final_prices.values = final_prices.values +
                                [(price + a.night_tariff + a.contract_price_addition) | round(4) ] -%}
        {% endif -%}
        {% endfor -%}
        {#{ final_prices.values }-#}
        {# making a vector of prices/times during "night charge" time window i.e. from night_start to
                                                                                        night_end  -#}
        {% set night_charge_prices = namespace(values = [], time = []) -%}
        {% for price in final_prices.values -%}
          {% if (loop.index0 >= night_start) and (loop.index0 < (night_end + 24)) -%}
              {% set night_charge_prices.values = night_charge_prices.values + [price] -%}
              {% set night_charge_prices.time = night_charge_prices.time + [loop.index0 % 24]-%}
          {% endif -%}
        {% endfor -%}
        {# during "night charging time" turn on only at cheapest hours -#}
        {#{ 'need to turn on the charger (at hour, price)' }-#}
        {% for price in night_charge_prices.values -%}
          {% if (night_charge_prices.values | sort)[charge_time - 1] >= price  -%}
            {{ night_charge_prices.time[loop.index0], night_charge_prices.values[loop.index0] }}
          {% endif -%}
        {% endfor -%}

Question1: where do I add the trigger and how? I do not seem to be able to - get an error…
Question2: currently I am getting an array as an output that looks crappy (example:
(4, 0.1703) (5, 0.1703) (6, 0.1233) (7, 0.1773)
How can I access these values or assign these as attributes?

Thanks!

2 posts - 2 participants

Read full topic

Templates unsupported in Threshold platform for upper: and lower:?

$
0
0

These sensors fail config validation - “expected float”

    name: "Sun Azimuth SE"
#    unique_id: sun_azimuth_se
    lower: '{{ states( "input_number.azimuth_se_lower" ) | float(0) }}'
    upper: '{{ states( "input_number.azimuth_se_upper" )|float(0) }}'
    entity_id: sensor.sun_azimuth

  - platform: threshold
    name: "Sun Azimuth South"
#    unique_id: sun_azimuth_south
    lower: '{{ states( "input_number.azimuth_south_lower" )|float(0) }}'
    upper: '{{ states( "input_number.azimuth_south_upper" )|float(0) }}'
    entity_id: sensor.sun_azimuth
    
  - platform: threshold
    name: "Sun Azimuth SW"
#    unique_id: sun_azimuth_sw
    lower: '{{ states( "input_number.azimuth_sw_lower" )|float(0) }}'
    upper: '{{ states( "input_number.azimuth_sw_upper" )|float(0) }}'
    entity_id: sensor.sun_azimuth

Also, unique_id: isn’t valid. Why?

1 post - 1 participant

Read full topic

Coordinator data

$
0
0

Summary. How do I trigger of a detail in the coordinator data. I don’t know where to start and very new to HA.

I am very new to Home Assistants, as in 24h ago. Well I started a few years back but I didn’t adventure too far as my rpi so card got corrupt and i started using habitat.

However I’m back to Home Assistant, well both systems with devices shared , and realise I have much to learn in home assistant.

I’ve successfully created a script to send my Roborock to a pin point, plus the usual start a cleaning cycle automation.

What I want to do now though is detect if the mop is attached. Seems to show in the coordinator data, but I’ve only triggered off devices so far so no idea how to trigger from the coordinator data “is_water_box_attached”.

I’m such a novice that I’m only familiar with creating automations through the automations area, and not yet up ro editing yaml files although am aware of it at least

2 posts - 1 participant

Read full topic

Generic Thermostat - How to set up Switch

$
0
0

Hi Guys -

Came across Generic Thermostat in Home Assistant and trying to set up. My requirement is simple.
Set the target temperature to 78 with a hot_tolerance of 4 degrees. Set the ac_mode to ‘true’

I’m stumped as to how to set up the heater : “switch” entity. I’ve entered my thermostat entity directly into the heater and I believe that’s not accurate. The documentation says that is should be a toggle. But I’m able to follow what that means.

Here is my config. Any insights are truly appreciated.

image

2 posts - 2 participants

Read full topic


Can someone help me a bit with my alarm script (siren not repeating for some reason)

$
0
0

Hello all,

I’m hoping someone can give me some guidance on the script below. For some reason, the audio doesn’t seem to be repeating. This is being played on my “everywhere” chromecast group when my alarm is triggered. If possible, it would be nice if someone could review the whole script for junk because I’ll be honest, I don’t really know what I’m doing just yet and pretty much just doing my best with my current abilities.

The lights seem like they are turning red and repeating until I stop them but the audio seems like it stops after 1 cycle. I honestly don’t know if I am using the wait template properly, nor do I know if it is in the correct position. I put 2 seperate “repeat” blocks because the lights default flash time is different than my audio clip so I think this is probably necessary.

Thank you all again for your guidance.

  notification_security_alarm_audio:
    sequence:
      - service: media_player.volume_set
        data_template:
          entity_id: media_player.everywhere_inside_except_tvs
          volume_level: |
            {{ states('input_number.alarm_siren_volume') | float }}
      - repeat:
          until:
            - condition: state
              entity_id: alarm_control_panel.alarmo
              state: disarmed
          sequence:
            - service: light.turn_on
              data:
                rgb_color:
                  - 255
                  - 0
                  - 0
              target:
                entity_id:
                  - light.couch_lamp
                  - light.chair_lamp
                  - light.entry_lamp
            - service: light.turn_on
              data:
                brightness_pct: 100
                flash: long
              target:
                entity_id:
                  - light.chair_lamp
                  - light.couch_lamp
                  - light.entry_lamp
      - repeat:
          until:
            - condition: state
              entity_id: alarm_control_panel.alarmo
              state: disarmed
          sequence:
            - service: media_player.play_media
              data:
                media_content_id: media-source://media_source/sounds/siren.mp3
                media_content_type: music
              target:
                entity_id: media_player.everywhere_inside_except_tvs
            - wait_template: '      - wait_template: ''{{ is_state("media_player.everywhere_inside_except_tvs", "idle") or is_state("media_player.everywhere_inside_except_tvs", "off") or is_state("media_player.everywhere_inside_except_tvs", "paused") }}'''
              continue_on_timeout: true
    mode: single

1 post - 1 participant

Read full topic

How to toggle entity attribute state on a dashboard

$
0
0

I’m newish to HA, though I know a little. I’m trying to automate my ducted heating system. One thing I’d like to do is be able to switch the mode of one of the dampers from ITC to Damper. This will let me switch from temperature control to percentage control of the dampers to override the system which I need to do occasionally. Right now I switch back to the native app, but I’d like to stop doing that.

Ideally I would like to toggle between the ITC and Damper modes with a fairly compact control so it’s easy on my phone dashboard, and have a visual representation of which mode it is currently in. I can’t work out how to add something on the dashboard to do this. I’m mostly using Mushroom Cards.

Can anyone suggest how I might do this?

I have found Input_Boolean but I can’t work out how to put it on a dashboard.

3 posts - 2 participants

Read full topic

Smartthings - Config flow could not be loaded: undefined

$
0
0

I see people get this error all over the place. I’ve spent the past week trying ways to work past this with no success. Has anyone who got this error and got around it able to say what they did to achieve some success?

1 post - 1 participant

Read full topic

Automation help system_log_event

$
0
0

hi guys,
for some reason every now and then my HA takes a little longer to detect my lg tv

Logger: homeassistant.components.media_player
Source: helpers/entity_platform.py:724
Integration: Media Player (documentation, issues)
First occurred: 22 July 2022 at 07:36:04 (3 occurrences)
Last logged: 07:36:34

Updating webostv media_player took longer than the scheduled update interval 0:00:10

so i created an automation to have the device reloaded

- id: lg_error
  alias: "LG Reload"
  trigger:
    - platform: event
      event_type: system_log_event
  condition:
    condition: template
    value_template: '{{ "webostv" in trigger.event.data.message[0] }}'
  action:
        - service: homeassistant.reload_config_entry
          data:
            device_id: 0bcd31a157ca7a6b41788a1f70b5c195

my issue is the automation never triggers.
could someone please help and tell me what I’m doing wrong?

1 post - 1 participant

Read full topic

New Map view not showing devices outside home

$
0
0

I’m struggling to find relevant docs relating to the new UI. There is a new Map menu item which shows a map with my home location. However, when I was away from home, I logged in using the app on my phone (I have access to HA through my router), but I could not see my device location.

In the old map card, you specified the entities to display, but this new Map view does not seem to work in the same way and the documentation pages all seem out of date.

Yes, location permissions are allowed all the time for the app on the phone.

Docs here Location | Home Assistant Companion Docs talk about setting Companion app settings for Android - but there are no such menu options any more and I can’t find any ‘Companion app’ settings anywhere.

Have been using an old HA version with OwnTracks for location and the map card, which was working fine, but want to use whatever’s newest and supported…

Any help?

1 post - 1 participant

Read full topic

Viewing all 109483 articles
Browse latest View live


Latest Images