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

Lunatone Dali4Net Modbus integration

$
0
0

Hi everyone,

For my renovation project I’ve done some research in how to automate my lighting. As there will be a lot of IoT devices I want to be working with a wired system to ensure enough room for all the additional wireless devices in the end.
Secondary I would like a stand alone wired system that can operate even when Home Assistant is out for a few minutes to prevent interruptions.
Because of those reasons I ended up with DALI, which is commonly used for building lighting automation.
After comparing a lot of brands I ended up with Dali4Net from Lunatone. Because this module has 4 dali lines with up to 265 DALI devices. This was important as there will be 4 seperate zones in the building which should be individually controllable.

The Dali4Net comes standard with a Modbus TCP interface which could be integrated into Home Assistant which is great because it doesn’t need any converters in between.
The only concern I have for this at the moment is the scan_interval because the Modbus interface is a local polling.

So because I will be using dimmable led lights in the whole building I would like to create dimmers controlled through Home Assistant (with rotary encoders, have a few on an esp8266 at the moment) to controll the DALI lights by sending updated dimming levels to the different lights.

My question:
Will I be able to dimm the lights fluently because of the scan_interval? Is the light level only updated every other second? Or half a second when lowering the interval?

1 post - 1 participant

Read full topic


Configuration Deutsche Bank Integration

$
0
0

How can I display information from Deutsche Bahn integration in dashboard. I put the sensor in configuration.yaml but in Lovelace card I get the notification ‘Unknown’?

1 post - 1 participant

Read full topic

Dashboard rename

$
0
0

Hopefully this is an easy question with an obvious answer. I’ve searched the forum and docs and haven’t found anything.

When I try to rename a Dashboard, I get this error.

extra keys not allowed @ data['mode']. Got 'storage' extra keys not allowed @ data['url_path']. Got 'new-dashboard-name'

Is changing the Title of a Dashboard not allowed?
Is there something else wrong with my configuration I should look for?
Is there another/better way to rename a Dashboard?

Thanks!

1 post - 1 participant

Read full topic

Adjusting the height of cards

$
0
0

I am trying to create a grid layout with layout-card, where i have 5 columns and 2 rows. I want both rows to be the exact same height, and fill out the screen, but for some reason I can’t adjust the height of the grid layout.

The top one, is the layout I’m trying to create, and the bottom one is how it looks now.

This is my code:

  - title: Kitchen Homescreen
    path: kitchen-homescreen
    icon: mdi:pot-mix
    type: custom:layout-card
    layout_type: grid
    layout:
      grid-template-columns: 20% 20% 20% 20% 20%
      grid-template-rows: 50% 50%
      grid-template-areas: |
        "poster poster calendar calendar calendar"
        "poster poster music todolist recipe"
      justify-items: stretch
    badges: []
    cards:
      - type: weather-forecast
        entity: weather.home
        view_layout:
          grid-area: poster
        show_forecast: true
      - type: media-control
        entity: media_player.sonos_living_room
        view_layout:
          grid-area: music
      - type: custom:todoist-card
        show_completed: 5
        entity: sensor.to_do_list
        view_layout:
          grid-area: todolist
        show_item_delete: true
        show_item_close: true
        show_item_add: true
        show_header: true
        only_today_overdue: false
      - type: calendar
        entities:
          - calendar.xxxxxxxxx
        view_layout:
          grid-area: calendar

How can I achieve this?

1 post - 1 participant

Read full topic

Device tracker from input_boolean

$
0
0

I have my own presence detection working and save the state accordingly. How can I make a device tracker that matches this value?

1 post - 1 participant

Read full topic

Failed when trying to deploy python script

$
0
0

Good companions. I’m new to Home Assistant and I get lost easily. I am trying to implement a python script to HA to change the value of a sensor on action of a button in lovelace. The script is this:

I have HA in a docker, and I have saved that script in this folder:

/usr/share/hassio/homeassistant/python_scripts

Then in configuration.yaml I insert this code to call it as a service:

python_script:

  - service: python_script.set_state
    data:
    entity_id: sensor.sensor_log
    state: '0'

But it gives me this error when validating HA:

Invalid config for [python_script]: expected dict for dictionary value @ data['python_script']. Got [OrderedDict([('service', 'python_script.set_state'), ('data', None), ('entity_id', 'sensor.sensor_log'), ('state', '')])]. (See /config/configuration.yaml, line 96).

What am I doing wrong? Thank you very much partners.

1 post - 1 participant

Read full topic

Shout-out to the Community

$
0
0

I just want to thank everyone in this community and the ZWaveJS community for putting the pressure on Silicone Labs and all the zwave stock manufacturers to fix the 700 series controller bug. Last fall I installed a few inovelli switches and the aeotec 500 stick. Then during Black Friday here in the US I found a ton of Zooz 700 series sensors and switches on sale that I couldn’t pass on. I also decided to swap out the aeotec stick for the Zooz 700 series stick in order for the sensor to really take advantage of the better range. Man this is where I really hit the bug. For months I couldn’t even get a single sensor to add properly into my Wave mesh and all the switches I got to add successfully seemed to lag like a son of a gun. Last weeke I finally upgraded to the new Zooz firmware and BOOM! All my issues were gonna. Sensors added super quickly especially when using the SmartStart feature of ZWaveJS and everything is super responsive.

So thank again for this awesome ZWave community. You guys are the really heroes IMO.

1 post - 1 participant

Read full topic

What causes this pair of icons?

$
0
0

Many of my switches showed this pair of icons after a core update (core-2022.3.5). Clicking on them brings back the switch icons.

(It appears that they were all MQTT switches).

Should I worry or just ignore it?
icon

2 posts - 2 participants

Read full topic


Energy Dashboard gas consumption vs. recorder DB mismatch?

$
0
0

I use a microcontroller to collect pulses from a gas meter and send them via mqtt every 5 minutes.
The sensor below listens to the mqtt topic and stores the m3 equivalent in the recorder/mariadb database
(1 collected pulse is 0.01 m3).

  - platform: mqtt
    name: "Gas Meter"
    state_topic: "gas/pulses_in_5_minutes"
    value_template: "{{ value | float * 0.01 }}"
    unit_of_measurement: "m³"
    device_class: gas
    state_class: total_increasing
    force_update: true

In the Energy Dashboard/Gas consumption chart, I selected gas_meter as gas source.

The bar for 06:00-07:00 shows 0.43 m3.
However the saved states in the database sum up to 0.61 m3.

    05:01:18.0 = 0.05 m³
    05:06:18.0 = 0.11 m³
    05:11:18.0 = 0.08 m³
    05:16:18.0 = 0.03 m³
    05:21:18.0 = 0.06 m³
    05:26:18.0 = 0.05 m³
    05:31:18.0 = 0.03 m³
    05:36:18.0 = 0.00 m³
    05:41:18.0 = 0.00 m³
    05:46:18.0 = 0.00 m³
    05:51:18.0 = 0.03 m³
    05:56:18.0 = 0.10 m³
    Sum: 0.54

Or, the bar for 07:00-08:00 shows only 0.19 m3.
However the saved states in the database sum up to 0.61 m3.

    06:01:18.0 = 0.12 m³
    06:06:18.0 = 0.12 m³
    06:11:18.0 = 0.03 m³
    06:16:18.0 = 0.05 m³
    06:21:18.0 = 0.09 m³
    06:26:18.0 = 0.06 m³
    06:31:18.0 = 0.06 m³
    06:36:18.0 = 0.06 m³
    06:41:18.0 = 0.02 m³
    06:46:18.0 = 0.00 m³
    06:51:18.0 = 0.00 m³
    06:56:18.0 = 0.00 m³
    Sum: 0.61

So I am doing something wrong I suppose?
I was under the impression that the total_increasing state class would take care of summing up the individual 5-minute consumptions?

Any advice would be appreciated!

1 post - 1 participant

Read full topic

Trend gradient is never zero

$
0
0

Hi,

I use trend for gas consumption meter in order to calculate gas consumption from the gradient.
What I observe is that even if gas is not consumed for some period of time the gradient is not changing to zero only still has the value from last moment the gas was consumed. I guess that maybe the reason is the sensor is not changing value so trend is not updated with new data. But this cause that trend is blind for flat (not changing) sensor value and will never has zero value, so I always see like I’m consuming the gas even if at the particular time I’m not consuming.

Is there better alternative to calculate usage in some period of time like last minute or 10 minutes from cumulative value sensor that always have only total value? By better alternative I mean something directly supported by Home Assistant and not writing program that will keep and use historical values…

Thank!

1 post - 1 participant

Read full topic

PEQ Door/Window sensor not reporting battery

$
0
0

Pretty new here from SmartThings. I have a few older PEQ Door/Window Sensors (Zigbee) that paired up just fine but do not show the battery status. They show open/close and temp just fine but show Unknown for battery.
I have this GoControl CECOMINOD016164 HUSBZB-1 USB Hub plugged into a NUC. The sensor reports as a Centralite 3300 if that helps.
Can someone point me in the right direction :slight_smile:

Thanks,
Scott

1 post - 1 participant

Read full topic

Where to put configuration for template sensors

$
0
0

I have a number of template sensors. I currently configure my template sensors as follows:

binary_sensor:
  - platform: template
    sensors:
      washer_running:
        delay_off:
          minutes: 3
        value_template: >
          {{ states('sensor.power_washer_3_1min') | float > 20.0 }}

This works fine. However, the Template documentation makes me think I should do this like this:

template:
  - binary_sensor:
      - name: "Washing Machine"
        delay_off:
          minutes: 3
        state: >
          {{ states('sensor.power_washer_3_1min') | float > 20.0 }}

Both methods work. Is either method preferred and better for performance or more likely to not be affected by a future breaking change?

1 post - 1 participant

Read full topic

Best LED strips for Home assistant?

$
0
0

I’ve been using the Alitove LED strips hooked up to an ESP8266 with WLED on it and it works great! However I’m seeing these Govee RGB LED strips for half the price but it doesn’t look like you can connect these to an ESP8266? Do these led strips work with HomeAssistant and be controlled, I do notice they are 12V as well?

Thanks!

1 post - 1 participant

Read full topic

Replace devices in scripts and automation

$
0
0

Disclaimer: Completely new to HA. But loving it.

So I’m setting up some basic scripts for testing. I can observe that it is possible to construct the script using a call service as well as by choosing a device. I also chanced upon some post that said that its preferred to use call service since if the device has to be replaced in the future with another one then the replacement process is easier with this method. Is this true?

So, lets say I create a lot of scripts and automation and for some reason I have to change one or more of the devices sometime in the future. Is it possible to easily update the scripts to incorporate the new devices? If yes, how exactly? Or does the script have to be re created from scratch?

1 post - 1 participant

Read full topic

Custom IP controlled device

$
0
0

What are the chances that something like the AV receiver at this link can be controlled using HA, preferably using IP since the device supports the same? Would it be possible for me to create a custom integration for the same? Any pointers for the same?

1 post - 1 participant

Read full topic


6 curtain installation

$
0
0

Hello,i already have a functional home assistant installation (2022.2.6) with some other stuff working, all ok.

So, i have 6 curtain which use the average bidirectional motor, and i am planning to domotize it, never used Zigbee, so i need advice.

Worries:
-Will the modules work with the dongles?
-Will any of these “Zigbee curtain module” work with ZHA ?
-How do i set the total (up/dn) run time?

Proposed dongles:

  • EFR32MG21
  • Conbee 2

Proposed curtain modules:
LoraTap ZigBee Shutter Switch Module
Tuya Smart Zigbee 3.0 Curtain Switch Module

GIRIER Tuya ZigBee 3.0 Smart Blind Curtain Switch Module

Thank you very much 4 the advice, and keep up tis great work.

1 post - 1 participant

Read full topic

Help setting up automation involving HVAC sensors and security system sensors

$
0
0

hello!

I’m trying to setup an automation but im not sure what is the best way to approach this so im reaching out.

Here’s what I would like to do:

If a window and/or door is kept open for more than 10 mintues, I want the HVAC (whether in cooling or heating mode i.e. winter or summer) to turn off and send a warning that this is the case

Here’s what I have:

  • a security system with door and window contacts reporting to HA (through an integration) via sensors
  • a thermostat reporting to HA through an integration

Thanks to the community help (especially @ Didgeridrew), I have a similar type automation here based on distance from home, it changes the temperature as we leave and/or approach the home.

Now its a bit different, so I had a some questions:

  1. Should I group my door and window contacts into one (there’s about 20 of them reporting), and thus it could make the condition easier (like true or false)?

  2. As for the thermostat, its integrated via American Standard/Trane and the entiies it reports are system status (fan running, waiting, cooling, heating, idle), and mode (heat, cool, off, heat/cool, off) etc. There are other entities reporting, I don’t know if “current system status” is required, but suspect that “mode” would be needed for this automation, for example, whether its in heat or cool, if the condition is met, change the mode to “OFF” and send a message.

  3. How do I incorporate a time of 10 minutes before the condition does anything? For example, opening a windor or door briefly (less than 10 minutes), should not turn off the HVAC.

Any ides as to how to set this up? I can paste some yaml once I have some direction as to how to set this up…did I miss anything?

thanks

1 post - 1 participant

Read full topic

Motion group automatisation problem

$
0
0

Hello,

I’m trying to arm in away mode my house when there is no motion for 30 mins.

I create a motion group and an automatisation. If I use the field ‘for’ to add a 30 mins delay in the trigger, the automatisations will never run. If I’m not using the field for, the automatisation will kick in right away when there is no motion. I’m missing something?

alias: Security - Auto Arm
description: ''
trigger:
  - platform: state
    entity_id: group.motion
    to: 'off'
    for:
      hours: 00
      minutes: 30
      seconds: 00
condition:
  - condition: not
    conditions:
      - condition: zone
        entity_id: person.xxx
        zone: zone.home
  - condition: time
    before: '16:00:00'
    after: '08:00:00'
  - condition: device
    device_id: 365270f2ff76a2f21ac90d72dd7b5e7e
    domain: alarm_control_panel
    entity_id: alarm_control_panel.aqara_hub_m1s_597b
    type: is_disarmed
action:
  - device_id: 365270f2ff76a2f21ac90d72dd7b5e7e
    domain: alarm_control_panel
    entity_id: alarm_control_panel.aqara_hub_m1s_597b
    type: arm_away
  - service: notify.mobile_app_pixel_6
    data:
      title: Home Srcurity
      message: Alarm system arm in away mode (30 mins no motion)
mode: single

type or paste code here


1 post - 1 participant

Read full topic

Template tutorial

Run automation after input changed x hours ago

$
0
0

Hi
I have a couple of things i want to impliment.
I have movement sensors in rooms that are occupied when the kids come. I would like to turn of the heating to these rooms after 12 hours since movement detector last activated. Also turn on when the movement sensor is activated.
I ‘could’ use a 12 hour timer but as this wont survive reboots id prefer to check say every 10 mins what the timestamp of the last detection was.
Any suggestions please?

James

1 post - 1 participant

Read full topic

Viewing all 105589 articles
Browse latest View live


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