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

Entity missing from Lovelace dashboard

$
0
0

I have a device with 4 entities. Three of these automatically appeared in the Lovelace dashboard but one of them is missing. I know that HA is receiving the correct value for the entity since I can see it in the History.

Does anyone have any idea why this may be happening and how I can correct it?

I am running HA 2021.12.6 on a Raspberry Pi. The device was created by the ESPhome add-on which connects to an ESP32. The missing entity is the wifi strength as seen by the ESP32.

4 posts - 2 participants

Read full topic


Set value if a sensor value is greater than

$
0
0

Hi.

I’m struggeling with setting a value when calling a service.

I have a temprature sensor that ranges from 20 to 70, I need to use that value to call a service. This part i get to work, the problem is that if the temprature sensor is greater that 50 to service that receives the value fail.

In my automation I pass

{{ states('sensor.nibe_76959_40071') }}

Is there a way to calculate the vaule, so that if it is greater than 50, I want to pass an actual vaule of 50.

2 posts - 2 participants

Read full topic

Configure flux_led to rgbw with Addressable v3 controller

$
0
0

I have Addressable v3 controller (at least I think so, it shows firmware version A3.v1.27.7809-A). I’ve connected to it RGBW strip (SK6812RGBW).
Looks like flux_led detects it as rgb strip - and do not allow me to manage w channel. I still can turn LED strip on/off and change RGB color/brightness, but W will be in the state that I last configured in Magic Home application.
Per forum posts I see, that previously it was possible to set color mode rgbw though config, but looks like now with configuration though UI it dose not allow me to change color mode.
When I check attributes of entity, I see:

effect_list:
  - RBM 1
  - RBM 2
  ...
supported_color_modes:
  - rgb
color_mode: rgb
brightness: 255
hs_color:
  - 0
  - 100
rgb_color:
  - 255
  - 0
  - 0
xy_color:
  - 0.701
  - 0.299
effect: music
ip_address: 192.168.1.139
friendly_name: cabinet_led_test
supported_features: 36

I tried to override mode though config:

light:
  - platform: flux_led
    devices:
      192.168.1.139:
        name: cabinet_led_test
        mode: "rgbw"

But it have not helped.

1 post - 1 participant

Read full topic

HA OS Stuck in VM Boot

$
0
0

Everytime I restart the VM running HA I seem to get stuck in emergency mode and have to press Control-D to continue with the boot process but once its booted, everything “appears” to be working properly and I have no further issues until I attempt to reboot the VM again.

Here is the error screen:

When I go into Config > Settings > Log > View Full HA Log Im not seeing anything obvious because some plugins slow to respond…etc. And if I do the restart within HA it reboots just fine. Its only when the VM is starting that it seems to generate this error which wouldn’t be a problem except I have to TeamViewer into the host PC and press Control-D to resume the boot process. Recorder, LoveLace, Dashboards, everything appears to be working as expected so this is stumping me.

VirtualBox 6.1.28
Home Assistant OS 7.1
supervisor-2021.12.2
core-2021.12.7

1 post - 1 participant

Read full topic

Default Behavior for Lights

$
0
0

Hihi!
I have several Lutron dimmer switches around the house. I would like to create an automation to apply to them all, something like, if brightness is <5% then bump to 50%.
This is because the normal dimmers have no favorite button, like the pico, so I wanna click once the increase brightness, which goes to around 3 to 4% and that would trigger the automation to bump to 50%.
Ideally I would prefer to, when light in off state, I press brightness down and that triggers the automation, but I think that’s not possible cause there will be no trigger in this case.
So how can I create a automation template and apply to all dimmers? Or do I really need to create one automation per light?

1 post - 1 participant

Read full topic

Automation with Webhooks and multiple queries

$
0
0

Hello,

I would like to switch my light to different colors via a webhook, depending on the value “event”.

Basically my script seems to work, but it stops after the first condition. So if “event=Feuer” the script works, but if “event=Gefahrgut” the script stops and does not come to the second condition at all.

Where is my error so that I can use multiple queries?

alias: Test Alarm Webhook 220103
description: ''
trigger:
  - platform: webhook
    webhook_id: Test_1
condition: []
action:
  - condition: template
    value_template: '{{ trigger.json.event == ''Feuer'' }}'
  - scene: scene.einsatz_beleuchtung_rot
  - condition: template
    value_template: '{{ trigger.json.event == ''Gefahrgut'' }}'
        - scene: scene.ha_einsatz_beleuchtung_lila
mode: single

And on top of that, another question:
How can I link multiple conditions with “Or”.
So for example

value_template: '{{ trigger.json.event == ''Feuer1'' }}' OR '{{ trigger.json.event == ''Feuer2'' }}' OR '{{ trigger.json.event == ''Feuer3'' }}'

Thanks a lot

1 post - 1 participant

Read full topic

Climate: Basic programmable thermostat

$
0
0

Hey, I’m new to HA and the first thing I decided to upgrade was to replace our 15 year-old programmable thermostat with a new Centralite Pearl.

Our ancient thermostat supported these simple programming options

  • For each day:
    • Time triggers (wake, leave, return, sleep)
    • Configure temps within those triggers for both A/C and Heat

The thermostat is visible in HA but the controls are rudimentary to say the least.
Is there a simple climate control addon to mimic what our 15-year old honeywell did?

2 posts - 2 participants

Read full topic

Can a Shelly PM handle a natural gas garage heater?

$
0
0

Amp rating of the fan on my garage heater is 3.75 AMP. Shelly PM is rated for 16A. But I know sometimes other things need to be taken into consideration.

Do you electrical guys think the Shelly PM could handle switching power to the heater?

3 posts - 2 participants

Read full topic


ON/OFF Issue

$
0
0

Hi,

I have an IR based Sony Subwoofer, I am monitoring it’s state based on Power Consumption using Smart Plug, but I don’t want the turn on command to repeat if it’s already on.

# Subwoofer Power ON/OFF based on energy consumption

- platform: template
  switches:
    living_room_subwoofer:
      value_template: "{{ states('sensor.subwoofer_plug_ma') | int > 50 }}"
      turn_on:
        service: switch.turn_on
        data:
          entity_id: switch.htc180_turn_on_off
      turn_off:
          service: switch.turn_off
          data:
            entity_id: switch.htc180_turn_on_off

1 post - 1 participant

Read full topic

Hello complete newbie and I've been stuck trying to find answers for over a day and decided to make an account

$
0
0

I just bought a CanaKit on Amazon with main intent being able to make a kiosk tablet thing to control my home. The kit came with a raspberry pi 4 and all the stuff you need. It had something called NOOBS on the microsd but i got rid of those files and flashed the hassio thing. anyways now I have HA on my homeassistant.local:8123 but I cant access supervisor mode or see it.

I see this instead. The steps I followed were installing HA OS on a rasperry pi. Help would be greatly appreciated.

2 posts - 2 participants

Read full topic

Determing cost of running garage heater

$
0
0

Can someone confirm that if my garage heater is a 75,000 BTU model. That means it uses 75,000 BTU’s per hour of use.

My bill is in therms. 1 therm = 100,000 BTU’s

I track how long the heater has been on. In 2021, it ran for a total of 90 hours.

90 hours x 75,000 BTU’s per hour = 6,750,000 BTUS

6,750,000 / 100,000 = 67.5 therms

So my heater used 67.5 therms all of 2021.

67.5 x $1 (per therm) = $67.50

1 post - 1 participant

Read full topic

Single automation for all lights

$
0
0

My goal is that I want to have the lights have a transition when they’re turned on (so they’re not immediately at full brightness when turned on). The old way I used was to have an automation per light, but that was heavy for maintenance/set up.

I sorta found a way to have a single automation but I wonder if it’s inefficient since the way I found is checking against all state_changed events, not just for lights. So what is the efficient way to do it?

2 posts - 1 participant

Read full topic

How to Automate When State Doesn't Change

$
0
0

I believe this has been asked before, but even after reviewing some posts I still can’t see how to make this work for my case (without making the YAML starting to get confusing).

I have the following automation where my watch is detected from an ESP32 proximity sensor (pretty cool project with ESPresense if you don’t know about it) and I want one automation to deal with the state changes, but I want to ensure no matter what if I am NOT in the office (even outside of working hours) that the heater turns off.

Note: It is possible that the watch doesn’t change state, so the trigger will never trigger, say I by accident have the heat turn on, even when I am not in the office.

alias: on_off_space_heater
description: Turn space heater on while in the office and working
trigger:
  - platform: state
    entity_id: sensor.apple_watch
    to: office
  - platform: state
    entity_id: sensor.apple_watch
    to: not_home
    for:
      minutes: 30
condition: []
action:
  - choose:
      - conditions:
          - condition: state
            entity_id: sensor.apple_watch
            state: office
          - condition: state
            entity_id: binary_sensor.workday_sensor
            state: 'on'
          - condition: time
            after: '07:00:00'
            before: '17:00:00'
          - condition: numeric_state
            entity_id: climate.space_heater
            attribute: current_temperature
            below: '60'
          - condition: state
            entity_id: climate.space_heater
            state: 'off'
        sequence:
          - service: climate.set_hvac_mode
            target:
              entity_id: climate.space_heater
            data:
              hvac_mode: heat_cool
          - service: notify.pushover
            data:
              message: Space heater turned on
  - choose:
      - conditions:
          - condition: state
            entity_id: sensor.apple_watch
            state: not_home
          - condition: state
            entity_id: climate.space_heater
            state: heat_cool
        sequence:
          - service: climate.set_hvac_mode
            target:
              entity_id: climate.space_heater
            data:
              hvac_mode: 'off'
          - service: notify.pushover
            data:
              message: Space heater turned off
mode: single

1 post - 1 participant

Read full topic

Local ID for 2 tuya devices?

$
0
0

Is there anyone that can help me get the Local ID for 2 tuya devices?

2 posts - 2 participants

Read full topic

Nortek HUSBZB-1 configuration for VirtualBox on Ubuntu host

$
0
0

Just wanted to share a fix that worked for me in case anyone else comes across this. Very new to HA, I’ve got an Intel NUC running Ubuntu 20.04 and for HA I’ve spun up a VM for HA OS in VirtualBox.

I have the Nortek HUSBZB-1 connected to the NUC by way of a 4-port USB 3.0 extension adapter. While the /dev/ttyUSB0 and /dev/ttyUSB1 ports show up correctly when looking at dmesg, VirtualBox would never seem to find them when looking at the USB section of the VM settings.

$ dmesg | grep tty
[    0.098933] printk: console [tty0] enabled
[    0.401530] serial8250: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[    3.470806] usb 2-4.2: cp210x converter now attached to ttyUSB0
[    3.483272] usb 2-4.2: cp210x converter now attached to ttyUSB1

HA wouldn’t show any USB devices or serial devices in the default configuration, so setting up Zigbee or Z-Wave integrations were failing as well of course. Eventually the steps below fixed it for me:

  1. On the host machine, run sudo chmod 666 /dev/ttyUSB[0,1]
  2. In VirtualBox, open the settings for the VM and go to the Serial Ports section.
  3. Enable 2 of the Serial Ports (doesn’t matter which numbers), and set the Port Mode to “Host Device”.
  4. Leave the IRQ and I/O Ports as they are, and leave the “Connect to existing pipe/socket” box checked.
  5. Enter the path /dev/ttyUSB0 for the first serial port, and /dev/ttyUSB1 for the second serial port.
  6. Fire up the VM and check with dmesg | grep tty in the HA terminal to see if the you now have a couple new ttyS[number] entries there. The IRQ numbers should match those in the VirtualBox serial port settings.
  7. Try adding the integration for ZHA and Z-Wave JS. You might pick the wrong serial port while setting it up first, if it fails make sure you try both serial ports.

Not sure if this is already known information or not, but I couldn’t seem to find these steps laid out anywhere else so hopefully this helps someone in the future!

1 post - 1 participant

Read full topic


Configuration.yaml Recoder and History Sections

$
0
0

Can someone explain the exact difference between the include/exclude of the history / recoder section?

my personal opinion till now is: When I exclude an domain/entity in history section, it will not shown in history, but data will already written to HAs SQLITE Database? When I exclude in recoder section no data will be written to database, but will it be displayed in history?

2 posts - 2 participants

Read full topic

How to add object type input argument for Blueprint

$
0
0

Hi, consider the following blueprint:

blueprint:
  name: Sensor - [Turn-On] Light on sensor open
  description: Turn on light on sensor open
  domain: automation
  input:
    binary_sensor:
      name: The window/door sensor that will trigger the automation
    target_light:
      name: Light
    ignore_auto_lights:
      name: Ignore the auto lights sensor (turn on always)
      default: false
    turn_on_brightness:
      name: Data to pass to the light.turn_on service
      default: None

variables: 
  ignore_auto_lights: !input ignore_auto_lights
  turn_on_brightness: !input turn_on_brightness

mode: single
condition:
  - condition: and
    conditions:
      - condition: state
        entity_id: !input target_light
        state: 'off'
      - condition: or
        conditions:
          - condition: state
            entity_id: binary_sensor.auto_lights_turn_on
            state: 'on'
          - condition: template
            value_template: "{{ ignore_auto_lights }}"
trigger:
  - platform: state
    entity_id: !input binary_sensor
    from: 'off'
    to: 'on'
action:
  - service: light.turn_on
    target:
      entity_id: !input target_light
    data: >  #here is where I don't know how to pass an object conditionally
      {{ {brightness: turn_on_brightness} }}

I would like to make my final input, turn_on_brightness be an object within the action part of the blueprint, so that I pass on Brightness, only if the brightness was configured in the automation.
I cant really find any examples anywhere in the docs on how to achieve that.

1 post - 1 participant

Read full topic

Convert a binary input to a power value?

$
0
0

Hi there,

I have wondering if it is possible to use a binary input for example from ESPhome, as a power measurement tool for my electric water heater. The power of the heater is 6kW. I could set up a relay to the ESP32 board that turns on when my water heater turns on to get the 5VDC signal input.

I know that I can measure the current with a power clamp, but I would like to find out if it is possible to make a template sensor or similar, so that when the ESP32 board registers an input, then HA “simulates” a power consumption of 6kW based on the ESP32 board input, which I then can calculate the energy consumption off of and display in the energy widget.

Do you have any ideas? I am not experienced in coding, but very enthusiastic about HA :slight_smile:

BR Mads

1 post - 1 participant

Read full topic

Google Assistant "Unknown error" with certain devices

$
0
0

Hello,
I finally set up the Google assistant integration for Home Assistant.
At the moment every device is working with vocal commands but 3 out of 46 devices have a problem.

Whent I try to turn ON or OFF one of those 3 devices through Google Assistant it says “an unknown error occurred with […]” but the device turns OFF and ON with no real problems.

It doesn’t seem to be a specific problem with the type/brand of those devices (SONOFF and Tuya zigbee 2 gang switches) since the exact same types of devices are working fine and they are very clos to each other.

Is there a way to fix this issue?

Thank you in advance

1 post - 1 participant

Read full topic

Engergy pv production sensor drops to zero, how to avoid in template sensor?

$
0
0

Dear community, I struggle now for over a year with my PV inverter giving me for total solar production 0 value, when there is no production for a longer time. This causes the enegery dashboard to show a spike in PV production, once the new energy is produced:

This is how the drop looks like in the sensor and my new template sensor below.

I had hoped to be able to use a new template sensor, which should ignore these drops by using availability_template. But unfortunately it does not. Has anybody an idea how to fix or ignore theses drops in the template sensor? If the orginial sensor drops is fine and maybe based on how the integration works, but I had hoped to fix as a template.

 - platform: template
    sensors:
      pv_production:
        unit_of_measurement: "kWh"
        value_template: >-
          {{ (states('sensor.pv_gen_meter')| float | round(2))}}
        availability_template: >-
          {{ states('sensor.pv_gen_meter') not in ['unknown', 'unavailable', 0]}}

Appreciate any hint or help here.

Thank you very much

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>