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

Set up a template select

$
0
0

Hello,
I’m trying to setup a template select without succes so far. The idea is to be able to customize icon depending on the select state. I have several template switch that work as expected (albeit syntaxt is slightly different), but I can’t even get this template select created (looking at Entities).
select.383 is an MQTT that is working fine.
Code is based on: Template/select, but obvioulsy I’m doing something wrong.
Running 2022.4.1
Thanks for any help on this matter

In configuration.yaml I’ve got

template: !include templates.yaml

And in templates.yaml, I’ve got

- select:
  - name: "Sèche_serviette_gui"
    unique_id: 383_1
    state: "{{ states('select.383') }}"
    options: "{{ state_attr('select.383', 'options') }}"
    select_option:
      service: select.select_option
      target:
        entity_id : select.383
        data:
          option
    icon: >
      {% if state == 'Off' %}
      mdi:radiator-off
      {% elif state == "On" %}
      mdi:radiator
      {% elif state == "Eco" %}
      mdi:radiator-off
      {% elif state == "HGt" %}
      mdi:radiator-off
      {% elif state == "HG" %}
      mdi:radiator-off
      {% elif state == "1H" %}
      mdi:radiator-off
      {% elif state == "2H" %}
      mdi:radiator-off
      {% endif %}

1 post - 1 participant

Read full topic


Automation is disabled and un-editable

$
0
0

Iadded the Aqara Cube controller via ZHA, and then pulled down the blueprint for it from here. I got a couple of the automations from it running via the automation ui, and then it suddenly showed as “greyed out” / disabled, and there is a slash through the edit icon on the right.

I tried removing the automation from automations.yml, but the item still shows in the UI. I have removed the blueprint as well, and rebooted several times, and still it shows.

  1. What would cause the automation to become like this to start with?
  2. How do I remove it from the UI?

Thanks in advance,

1 post - 1 participant

Read full topic

Template Sensor Not allowing HA to restart

$
0
0

Hi

Sorry for being a NOOB on this. I have looked through the forum and not managed to find a solution. I have two power meters, one measures the entire circuit and the other measures a specific device. These work perfectly, but I am double accounting the energy usage on the specific device. I would like to define another variable that I can use on the energy dashboard etc as the complete circuit - the specific device. I have created a template and it seems to work. But when I load this into my configuration.yaml it fails to restart home assistant

sensor:
  - platform: template
    sensors:
      Separated_Top_Floor_Sockets_Total_Consumption:
        friendly_name: Separated Top Floor Sockets total Consumption
        unit_of_measurement: kWh
        value_template: >-
          {{ ( states('sensor.shelly_shem_3_c45bbe7998ad_3_total_consumption') | float |round(1)) -  ( states('sensor.shelly_shem_bcff4dfcdc57_1_total_consumption') | float| round(1))}}

Any help would be most appreciated

cheers

1 post - 1 participant

Read full topic

Shelly 3EM 3-phase Net Metering templates for export not working

$
0
0

I am trying to customize the energy dashboard to show my consumed power, generated solar power and the power that was fed back into the grid.

I found the following templates which should do exactly the things above:
https://community.home-assistant.io/t/shelly-3em-3-phase-net-metering-templates-for-import-export-and-consumption/390237

I copied the templates into my config and modified the sensor sources:

- platform: template
  sensors:
    # Gaszähler, kommend von ESPHome, aufbereiten für Energy
    gasincubicmeter:
      unique_id: gas_qubic_meter
      value_template: "{{ states('sensor.gasverbrauch') | float }}"
      unit_of_measurement: m³
      device_class: gas
      attribute_templates:
        state_class: total_increasing
    # Template sensor for values of power import (active_power > 0)
    power_import:
      friendly_name: "Power Import"
      unit_of_measurement: "W"
      value_template: >-
        {% if (states('sensor.hausverbrauch_channel_a_power')|float + states('sensor.hausverbrauch_channel_b_power')|float + states('sensor.hausverbrauch_channel_c_power')|float) > 0 %}
          {{ states('sensor.hausverbrauch_channel_a_power')|float + states('sensor.hausverbrauch_channel_b_power')|float + states('sensor.hausverbrauch_channel_c_power')|float }}
        {% else %}
          {{ 0 }}
        {% endif %}
      availability_template: "{{
        [ states('sensor.hausverbrauch_channel_a_power'),
        states('sensor.hausverbrauch_channel_b_power'),
        states('sensor.hausverbrauch_channel_c_power')
        ] | map('is_number') | min
        }}"
    power_export:
      friendly_name: "Power Export"
      unit_of_measurement: "W"
      value_template: >-
        {% if (states('sensor.hausverbrauch_channel_a_power')|float + states('sensor.hausverbrauch_channel_b_power')|float + states('sensor.hausverbrauch_channel_c_power')|float) < 0 %}
          {{ (states('sensor.hausverbrauch_channel_a_power')|float + states('sensor.hausverbrauch_channel_b_power')|float + states('sensor.hausverbrauch_channel_c_power')|float) * -1 }}
        {% else %}
          {{ 0 }}
        {% endif %}
      availability_template: "{{
        [ states('sensor.hausverbrauch_channel_a_power'),
        states('sensor.hausverbrauch_channel_b_power'),
        states('sensor.hausverbrauch_channel_c_power')
        ] | map('is_number') | min
        }}"
# Sensor for Riemann sum of energy import (W -> Wh)
- platform: integration
  source: sensor.power_import
  name: energy_import_sum
  unit_prefix: k
  round: 1
  method: left

# Sensor for Riemann sum of energy export (W -> Wh)
- platform: integration
  source: sensor.power_export
  name: energy_export_sum_new
  unit_prefix: k
  round: 1
  method: left

also the utility meters


utility_meter:
  gasverbrauch_daily:
    source: sensor.gasverbrauch
    cycle: daily
  energy_export_daily:
    source: sensor.energy_export_sum_new
    name: Energy Export Daily
    cycle: daily
  energy_import_daily:
    source: sensor.energy_import_sum
    name: Energy Import Daily
    cycle: daily
  energy_import_monthly:
    source: sensor.energy_import_sum
    name: Energy Import Monthly
    cycle: monthly
  energy_export_monthly:
    source: sensor.energy_export_sum_new
    name: Energy Export Monthly
    cycle: monthly

restarted homeassistant, and all the sensors show up in entities.

But now the weird part, the Power Import sensor is working and showing current readings, also the energy_import_sum sensor is filled correctly and i can see the history of it, and also the utility meter “energy_import_daily” is working and showing the calculated values.

BUT the “Power Export” is behaving differently. While the “Power Export” Sensor is showing the values as expected

but the other two “energy_export_sum_new” and “energy_export_daily” do not show any data and seem to not be updated (last updated 9 hours ago while Power Export was fired recently)

I don’t understand what is going wrong here, why is import working and export not?
Any help is welcome

1 post - 1 participant

Read full topic

Stranger error

$
0
0

Weird error for running some music on the everywhere group. Maybe i need to post this in the alexa media player GitHub repo, but posting here for wider reach.

Unexpected error for call_service at pos 1: URL is relative, but does not start with a /

- id: '1638533164647'
  alias: Weekend relaxing music afternoon
  description: Play weekend relaxing music at sunset
  trigger:
  - platform: sun
    event: sunset
    offset: '0'
  condition:
  - condition: time
    weekday:
    - sat
    - sun
  action:
  - service: media_player.play_media
    target:
      area_id: dining_room
    data:
      media_content_id: shuffle relaxing music playlist everywhere
      media_content_type: AMAZON_MUSIC
  mode: single

1 post - 1 participant

Read full topic

DNSIP Integration issues with myip.opendns.com

$
0
0

Hello,

I’ve been struggling to get my WAN IP as a sensor. Anyone else having issues with with the DNSIP integration and just using the default values? If I try using the default values, it just says “Invalid hostname”. In addition, for some reason I can only use the integration to add sensors. I tried adding it manually but adding -platform: dnsip in the configuration file under sensors (I tried !include as well) does not work. I cannot find the entity (such as sensor.myip) using the developer tools. Any advice? Thanks!

1 post - 1 participant

Read full topic

I need help with an Automation

$
0
0

Hi all, I could use some help understanding unexpected behavior in an automation.

I have a system to check for dead batteries in my zwave devices using a template and an auto-entries card on the Dashboard to display them as the template renders true. That card is as follows:

type: custom:auto-entities
card:
  type: entities
  title: Check Batteries
  show_header_toggle: true
  state_color: false
filter:
  template: |
    {{ expand('group.battery_sensor_overdue_normal_grp')
      | selectattr('last_changed', 'lt',now()-timedelta(hours=states("input_number.time_till_sensor_overdue_in") | int)) 
      | map(attribute='entity_id') | list  | join('\n')
      ~ expand('group.battery_sensor_overdue_extended_grp')
      | selectattr('last_changed', 'lt',now()-timedelta(hours=24 | int))
      | map(attribute='entity_id') | list  | join('\n')
    }}
show_empty: true
sort:
  method: none

There are two parts to this template, one that checks against an input_number (currently set to 3 hrs) and the other set to 24 hrs. The second set of sensors are expected not to change very often, so they were separated out so I could have better resolution for those that do. The referenced groups are as follows:

  battery_sensor_overdue_normal_grp:
    entities:
      - sensor.zooz_zse19_siren_temperature
      - sensor.zooz_zse40_multi_garage_entry_temperature
      - sensor.zooz_zse40_multi_garage_left_temperature
      - sensor.zooz_zse40_multi_garage_right_temperature
      - sensor.zooz_zse40_multi_stairs_temperature
      - sensor.zooz_zse40_multi_downstairs_temperature
      - sensor.zooz_zse40_multi_den_temperature
      - sensor.zooz_zse40_multi_litter_box_temperature
      - sensor.fibaro_eye_office_temperature
      - sensor.fibaro_eye_mbr_temperature
      - sensor.fibaro_eye_lr_temperature
      - sensor.fibaro_eye_foyer_temperature
  battery_sensor_overdue_extended_grp:
    entities:
      - sensor.zooz_zse29_outdoor_motion_front_luminance
      - sensor.zooz_zse29_outdoor_motion_side_luminance
      - sensor.sensative_strips_comfort_temperature
      - sensor.zooz_zse40_multi_shed_temperature
      - sensor.zooz_zse40_multi_vault_temperature

This all seems to work as expected. On a separate status page, I have an input_boolean on a button that turns red if any batteries are dead, turned on/off by an automation that uses the same template as above (except for the != "" part at the end). That automation is shown below:

  # Sensor Update Overdue (Check Battery)
  - id: sensor_update_overdue_atm
    alias: Sensor Update Overdue (ATM)
    mode: parallel
    trigger:
      - platform: state
        entity_id: input_number.time_till_sensor_overdue_in
      - platform: template
        value_template: >
          {{ expand('group.battery_sensor_overdue_normal_grp')
            | selectattr('last_changed', 'lt',now()-timedelta(hours=states("input_number.time_till_sensor_overdue_in") | int)) 
            | map(attribute='entity_id') | list  | join('\n')
            ~ expand('group.battery_sensor_overdue_extended_grp')
            | selectattr('last_changed', 'lt',now()-timedelta(hours=24 | int))
            | map(attribute='entity_id') | list  | join('\n')
            != ""
          }}
    action:
      choose:     
        conditions: >   
          {{ expand('group.battery_sensor_overdue_normal_grp')
            | selectattr('last_changed', 'lt',now()-timedelta(hours=states("input_number.time_till_sensor_overdue_in") | int)) 
            | map(attribute='entity_id') | list  | join('\n')
            ~ expand('group.battery_sensor_overdue_extended_grp')
            | selectattr('last_changed', 'lt',now()-timedelta(hours=24 | int))
            | map(attribute='entity_id') | list  | join('\n')
            != ""
          }}
        sequence: 
          service: homeassistant.turn_on
          data:
            entity_id: input_boolean.sensor_update_overdue_ib
      default:
        service: homeassistant.turn_off
        data:
          entity_id: input_boolean.sensor_update_overdue_ib

When I test this by varying the input_number up and down, both the auto-entities card AND the input_boolean work as expected, both in sync.

However, I’ve noticed that sometimes the input_boolean is on (turned on by the automation) but the auto-entities card is blank. It is currently in that state, and I’m not really understanding what the Changed Variables section is telling me in the Automation Debugger for the Trigger, shown below:

this:
  entity_id: automation.sensor_update_overdue_atm
  state: 'on'
  attributes:
    last_triggered: '2022-04-24T13:28:00.019197+00:00'
    mode: parallel
    current: 0
    max: 10
    id: sensor_update_overdue_atm
    friendly_name: Sensor Update Overdue (ATM)
  last_changed: '2022-04-22T18:53:37.159943+00:00'
  last_updated: '2022-04-24T13:28:00.044581+00:00'
  context:
    id: 6e7efe5425d00141d695667f3db33eb1
    parent_id: null
    user_id: null
trigger:
  platform: template
  entity_id: sensor.zooz_zse40_multi_stairs_temperature
  from_state:
    entity_id: sensor.zooz_zse40_multi_stairs_temperature
    state: '64.71'
    attributes:
      state_class: measurement
      unit_of_measurement: °F
      device_class: temperature
      friendly_name: Zooz ZSE40 Multi Temperature (Stairs)
    last_changed: '2022-04-24T17:11:41.271659+00:00'
    last_updated: '2022-04-24T17:11:41.271659+00:00'
    context:
      id: 1cdccd7e07a69a778e37bc72bab559a8
      parent_id: null
      user_id: null
  to_state:
    entity_id: sensor.zooz_zse40_multi_stairs_temperature
    state: '64.73'
    attributes:
      state_class: measurement
      unit_of_measurement: °F
      device_class: temperature
      friendly_name: Zooz ZSE40 Multi Temperature (Stairs)
    last_changed: '2022-04-24T17:39:56.790414+00:00'
    last_updated: '2022-04-24T17:39:56.790414+00:00'
    context:
      id: f60b151a7021c04600326dedc00a6f29
      parent_id: null
      user_id: null
  id: '1'
  idx: '1'
  for: null
  description: sensor.zooz_zse40_multi_stairs_temperature via template

Below is the relevant history for that sensor around the times shown in the above Trigger details. As can be seen, there is not 3 hr span that would have caused the trigger. Note: Alaska lags GMT by 8 hrs presently, so this Automation was Executed: April 24, 2022, 9:39:56 AM per the automation editor, which is a state-change delay of only 28 minutes.

I understand from prior knowledge and looking at the template in the template editor in Dev Tools that the template is checked every minute (due to now()). I’m not sure why the input_boolean is being left on, or rather, why the automation is triggering at all.

I’m clearly missing something in my logic, but don’t see it. I’m hoping that some HA template guru will see something I don’t. Any advice would be appreciated.

Thanks
Shane

1 post - 1 participant

Read full topic

Human spoken time

$
0
0

I just wanted to share a little project I’ve been working on. I’ve got several automations that inform me, thought my Google speakers, when a certain event has happend. Whenever I call a time it will tell me that something happend at sixteen hours twelve minutes. I prefer a more human approach.

I’ve created a sensor:

- platform: template
  sensors:
    human_time:
      friendly_name: Human spoken time
		{% if (now().minute | float) == 0 %}
		  {{ now().strftime('%-I') }} uur

		{% elif (now().minute | float) >= 1 and (now().minute | float) <= 14 %}
		  {{ now().minute }} minuten over {{ now().strftime('%-I') }}

		{% elif (now().minute | float) == 15 %}
		  kwart over {{ now().strftime('%-I') }}

		{% elif (now().minute | float) >= 16 and (now().minute | float) <= 29 %}
		  {{ 30 - now().minute | int }} minuten voor half {{ now().strftime('%-I') | int + 1 }}

		{% elif (now().minute | float) == 30 %}
		  half {{ now().strftime('%-I') | int + 1 }}

		{% elif (now().minute | float) >= 31 and (now().minute | float) <= 44 %}
		  {{ now().minute | int - 30 }} minuten over half {{ now().strftime('%-I') | int + 1 }}

		{% elif (now().minute | float) == 45 %}
		  kwart voor {{ now().strftime('%-I') | int + 1 }}

		{% elif (now().minute | float) >= 46 and (now().minute | float) <=59 %}
		  {{ 60 - now().minute | int }} minuten voor {{ now().strftime('%-I') | int + 1 }}

		{% endif %}

And if I call:

service: tts.cloud_say
data:
  entity_id: media_player.woonkamer
  message: De tijd is nu {{ states('sensor.human_time') }}

then it’ll say the time in a more human way.

Next up is finding a way so I can use this template on a variety of times because it currently only says the current time.

1 post - 1 participant

Read full topic


GE Fan Switch

$
0
0

Picked up a couple of these cheap but haven’t opened them yet. Live in a cape cod house so fans aren’t an option (low ceilings) but was wondering if these could be used for some other application? Figure at least they could be used as a normal switch but was interested in other ideas.

1 post - 1 participant

Read full topic

Ecobee integration, can not get Ecobee API key

$
0
0

Just purchased an Ecobee thermostat to replace my existing smart thermostat.

Primary reason was I wanted HA integration.

The Ecobee thermostat was auto discovered once I’d installed it.

Click on configure, prompts for an Ecobee API key.

Tried to register as a developer on developer.ecobee.com, and when you click register as a developer, you only get the option to log in to register.

I tried my ecobee login, it fails back to same login screen.

Tried the forgot password link, it fails to load a page, internal error.

Anyone know how to get an API key for the Ecobee Plug-in? My attempts have failed.

1 post - 1 participant

Read full topic

Show Area of entity instead of entity name in lovelace

$
0
0

I am using room-assistant to track devices across my house, the data it sends to home-assistant includes the host-name of the rpi that the cluster thinks the item is closest to. I am looking for a way to convert these hosts into Areas setup in HA. I have already mapped the hosts (they are MQTT devices) to the appropriate Areas bot am not sure how I can display this on the dashboard.

Current lovelace showing the entity name:

Entities setup in Areas:

1 post - 1 participant

Read full topic

Can I create device-specific callback actions on the same lovelace dashboard?

$
0
0

I’m using a few custom lovelace dashboards to notify us about different things using a couple Google Home Displays. For that, I’ve setup a set of custom lovelave dashboards which essentially show one big button for users to press whenever the necessary action is done.

E.g.: Whenever the waching machine is done, the “washing machine reminder” lovelace will show up on a few Google Home Displays around the house displaying a large washing machine icon as button. Whoever emptied the washing machine can then press the icon on the Google Home and mark it as “done”.

Now, to raise the all-important woman-acceptance-factor, I had to “gamify” this a little bit with custom voice replies whenever “someone”, i.e. my wife, did the chore. Auto-replying a “thank you” using a voice command on the respective Google Home Display does wonders. However, I currently do not have a way of distinguishing between on which specific device (for now, only Google Home Displays) the “chore-done” button was pressed - so I have to do my reply action on all of them or the “most propable” one. Which is hit-or-miss.

TL;DR: Is there a way to detect on which device a lovelace button was pressed when using the same lovelace on all of them? I’d strongly prefer not to create device-specific (pratically identical but differently named) lovelace dashboards.

1 post - 1 participant

Read full topic

Defaro DAD101 dimmer is created in "number" domain instead of "light"

$
0
0

Following the migration from legacy OpenZWave to Z-Wave JS, my Defaro DAD-101 dimmer control is shown in “number” domain in Home Assistant. Is it possible to return it back to “light” domain?

I studied the documentation for Z-Wave JS regarding configuration files for devices, but it looks like they’re not used to configure which domains are chosen for z-wave nodes.

Appreciate any thoughts/ideas on that.

1 post - 1 participant

Read full topic

Retroactive template calculation?

$
0
0

Is it possible to have the template sensors compute over historic data? If not, how do you clean up the starting data that the new sensors had before they started updating (assuming the source of the values).

image

template:
  - sensor:
      - name: "vent_outdoor_temp_diff"
        unit_of_measurement: "°F"
        state: >
          {% set owmtemp = states('sensor.openweathermap_temperature') | float %}
          {% set vent = states('sensor.vent_temp') | float %}

          {{ (vent - owmtemp) | round(5, default=0) }}
  - sensor:
      - name: "vent_intake_temp_diff"
        unit_of_measurement: "°F"
        state: >
          {% set intake = states('sensor.intake_temp') | float %}
          {% set vent = states('sensor.vent_temp') | float %}

          {{ (vent - intake) | round(5, default=0) }}

{ edit } - I really would rather see historic data, but worst case cleaning up that init data allows me to see current data as the graph will be scaled correctly to see the line variances.

1 post - 1 participant

Read full topic

History stats sensor issue

$
0
0

Ok, so maybe I’m blind, or misunderstanding something, but I’m having an issue with a history_stats sensor. Maybe someone can help.

Background:
I’m trying to break out the hvac_action attribute of the hive system, so I can then create an automation to track if the heating has been on in the last 12 hours. This is to aid me in the mornings, when I’m a zombie, to know if I should use the electric shower, or if there’s sufficient hot water. (Note, when heating is active, the system also heats my water.) The automation will cause my bathroom light to change colour or flash, when there’s hot water, so I don’t need to think, or check my phone. Remember, I’m a zombie in the morning!

Sensors:
The attributes I need are part of climate.upstairs, and climate.downstairs, and I’ve managed to break these out into their own sensors.

#
### Break out Hvac_action from hive climate sensor
#
      downstairs_hvac:
        friendly_name: Downstairs Hvac
        value_template: '{{ state_attr("climate.downstairs", "hvac_action") }}'
#
      upstairs_hvac:
        friendly_name: Upstairs Hvac
        value_template: '{{ state_attr("climate.upstairs", "hvac_action") }}'

All good so far.

The next step was to use the history_stats function to track those two sensors for 12 hours.

sensor:

# Keep track of how long the heating has been on.
  - platform: history_stats
    name: downstairs heating
    entity_id: sensor.downstairs_hvac
    state: "heating"
    type: time
    end: "{{ now() }}"
    duration:
      hours: 12

  - platform: history_stats
    name: upstairs heating
    entity_id: sensor.upstairs_hvac
    state: "heating"
    type: time
    end: "{{ now() }}"
    duration:
      hours: 12

I thought I was tracking the sensors successfully, but it’s become obvious that sensor.upstairs_heating is not working, while sensor.downstairs_heating is working as intended.

Can anyone help? What have I missed?

1 post - 1 participant

Read full topic


REST sensor.. how to parse json?

$
0
0

Hi… made a api witch spits out a JSON (parsed and checked on various parsers online)
This is my JSON:

{"icao24":"040102","registration":"ET-ASH","manufacturericao":"BOEING","manufacturername":"Boeing","model":"Boeing 787-8","typecode":"B788","serialnumber":"38754","linenumber":"283","icaoaircrafttype":"L2J","operator":"Ethiopian Airlines","operatorcallsign":"ETHIOPIAN","operatoricao":"ETH","operatoriata":"ET","owner":"Ethiopian Airlines","testreg":"","registered":"2015-04-01","reguntil":"","status":"","built":"2015-01-01","firstflightdate":"","engines":"","modes":"false","adsb":"false","acars":"false","notes":"","categoryDescription":"Heavy (> 300000 lbs)"}

My rest sensor is configured like this:

sensor:
  - platform: rest
    ### REST Sensor for AIRPLAN INFO..
    resource: "http://192.168.1.10/minglarn/php/find_aircraft.php?air=040102"
    timeout: 40
    name: aircraft_info
    method: GET
    json_attributes:
      - manufacturericao
      - manufacturername
      - model
      - operator
      - owner
      - registered
      - built

When checking the logs i see:

2022-04-25 01:33:16 WARNING (MainThread) [homeassistant.components.rest.sensor] Empty reply found when expecting JSON data

But when I do a CURL -X GET i do get the json…
What is wrong here?!

1 post - 1 participant

Read full topic

Can't run Scripts via the Google Assistant

$
0
0

I have a home assistant instance with an SSL cert and nginx which was working fine for quite some time. I can say sync my devices and I no longer get an error. I can open Google home and turn off devices or do so via voice, but if speak to Google and try to run a script (goodnight) like I always did it says my test app is not available.

The scripts are exposed in configuration.yaml and I can even see the script I created yesterday so I know it’s properly syncing. Could it be hidden entities or something with the recent HA changes / visibility to integrations maybe? Any ideas?

1 post - 1 participant

Read full topic

"on" condition for multiple entities

$
0
0

I want to send a notification if one of the smoke detecors state is “on”
But I have to match only for the state “on” not “off”
This is my not working condition :grinning:

alias: Brandmelder
description: ''
trigger:
  - platform: state
    entity_id:
      - binary_sensor.smoke_buero
      - binary_sensor.smoke_paul
      - binary_sensor.smoke_philipp
      - binary_sensor.smoke_pool
      - binary_sensor.smoke_sz
      - binary_sensor.smoke_stiegenhaus
      - binary_sensor.smoke_stueberl
      - binary_sensor.smoke_wz
      - binary_sensor.smoke_waschkueche
condition:
  - condition: template
    value_template: "{{ trigger.platform.state == 'on' }}"
action:
  - service: notify.pushover
    data:
      message: Es brennt auf {{ trigger.from_state.attributes.friendly_name }}
      title: ACHTUNG
mode: single

Any Idea how to match for the state “on” ?

3 posts - 3 participants

Read full topic

Insteon Scheduling and Insteon-Panel

$
0
0

@nickrout
So I finally got my RPi/HA/Insteon Integration working. Now it would be nice to have an easy-to-use built-in scheduler without having to decipher cryptic (to a newby) automations and such. There is a clear need for easy scheduling for the influx of HA users that have “come over” from the ashes of Insteon.

I see Tim Harris has released a new “Panel” for Insteon but not sure it includes scheduling.

Also, how do I avail myself of these new developments? What do I do with the code? How do I get my RPi to run it…or does it?

3 posts - 2 participants

Read full topic

Trying to install Emulated Hue integration

$
0
0

Very new to HA and this environment. I am an Insteon castaway. Have installed HA (nice) and trying to add/integrate (not sure the vernacular used here) the Emulated Hue integration to connect Insteon lights to Harmony elite home control buttons. I have the following config file:

`default_config:

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
#light: !include lights.yaml

start_time:

emulated_hue:
listen_port: 80

advertise_ip: 10.0.0.10

advertise_port: 8080

expose_by_default: true

exposed_domains:

- light`

Port 80 is open. I have tried various commands but keep getting the same error when I start HA:

Logger: homeassistant.setup
Source: C:\Users\tahou\Home Assistant\HassWP_2022.2.3\python-3.9.10.amd64\lib\site-packages\homeassistant\setup.py:237
First occurred: 8:19:34 PM (1 occurrences)
Last logged: 8:19:34 PM

Error during setup of component emulated_hue
Traceback (most recent call last):
File “C:\Users\tahou\Home Assistant\HassWP_2022.2.3\python-3.9.10.amd64\lib\site-packages\homeassistant\setup.py”, line 227, in async_setup_component
result = await task
File "C:\Users\tahou\Home Assistant\HassWP_2022.2.3\python-3.9.10.amd64\lib\site-packages\homeassistant\components\emulated_hue_init
.py", line 137, in async_setup
listen = create_upnp_datagram_endpoint(
File “C:\Users\tahou\Home Assistant\HassWP_2022.2.3\python-3.9.10.amd64\lib\site-packages\homeassistant\components\emulated_hue\upnp.py”, line 73, in create_upnp_datagram_endpoint
ssdp_socket.setsockopt(
OSError: [WinError 10022] An invalid argument was supplied

I copied the syntax from HA suggested pages but to no avail. Any help appreciated.

Regards,

Allen

1 post - 1 participant

Read full topic

Viewing all 99590 articles
Browse latest View live


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