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

Automation triggers sometimes


Custom flow pattern (yeelight)

$
0
0

Hello, I have created a light group (yeelight) and want to create a custom flow so that both lights have same color / pattern. I have tested with following code and can see it does not works.

It only works when i use that on individual light i.e. downstairs light.

entity_id: light.upstairs_light
action: stay
transitions:
  - TemperatureTransition:
      - 1900
      - 1000
      - 80
  - TemperatureTransition:
      - 1900
      - 1000
      - 10

Thanks

1 post - 1 participant

Read full topic

TTS MP3 files are generated empty (silent)

$
0
0

(topic withdrawn by author, will be automatically deleted in 24 hours unless flagged)

1 post - 1 participant

Read full topic

After update to 0.117.2 bluetooth tracker stopped working

$
0
0

Hello,

after update to 0.117.2 my bluetooth tracker stopped working - still showing “not_home”. I dont know where could be an issue.
my configuration.yaml settings seems like this:

device_tracker:
  - platform: bluetooth_tracker
    new_device_defaults:
      track_new_devices: false

1 post - 1 participant

Read full topic

Mqtt add-on works but no discovery

$
0
0

Hi,

I’m trying to get MQTT auto discovery working. As far as I can see, HA is not listening on the “homeassistant/#” topic.

I have the MQTT Mosquitto integration installed. MQTT integration has “Enable newly added entities.” switch turned on.

MQTT broker has the default configuration and it is working except for discovery.
I have some MQTT lights configured manually in “light.yaml” like:

- platform: mqtt
  schema: json
  name: Livingroom
  state_topic: "rroble_e902/light/Livingroom/state"
  command_topic: "rroble_e902/light/Livingroom/set"
  brightness: true
  brightness_scale: 100
  optimistic: false
  qos: 0

These lights work fine and I can control them with:

mosquitto_pub -h 127.0.0.1 -p 1883 -t "rroble_e902/light/Lavanderia/set" -m '{"state":"ON","brightness":50,"indicator":"ON"}' -u USER -P PASS

The log shows:

2020-11-02 23:50:41 INFO (MainThread) [homeassistant.setup] Setting up mqtt
2020-11-02 23:50:41 INFO (MainThread) [homeassistant.setup] Setup of domain mqtt took 0.0 seconds
2020-11-02 23:50:43 INFO (Thread-5) [homeassistant.components.mqtt] Connected to MQTT server core-mosquitto:1883 (0)
2020-11-02 23:50:43 INFO (MainThread) [homeassistant.components.light] Setting up light.mqtt
2020-11-02 23:50:47 DEBUG (MainThread) [homeassistant.components.mqtt] Subscribing to rroble_e902/light/Livingroom/state, mid: 21

I am testing MQTT discovery with the example in the documentation (https://www.home-assistant.io/docs/mqtt/discovery/) using mosquitto:

mosquitto_pub -h 127.0.0.1 -p 1883 -t "homeassistant/binary_sensor/garden/config" -m '{"name": "garden", "device_class": "motion", "state_topic": "homeassistant/binary_sensor/garden/state"}' -u USER -P PASS

And also with

Developer tools > MQTT > Publish a packet

topic: "homeassistant/binary_sensor/garden/config"
payload: '{"name": "garden", "device_class": "motion", "state_topic": "homeassistant/binary_sensor/garden/state"}'

The log only shows the transmission, but is not receiving:
2020-11-03 00:51:21 DEBUG (MainThread) [homeassistant.components.mqtt] Transmitting message on /homeassistant/binary_sensor/garden/config: '{"name": "garden", "device_class": "motion", "state_topic": "homeassistant/binary_sensor/garden/state"}', mid: 43

I am running:

  • HassOS 4.15
  • Home Assistant 0.117.2
  • Mosquitto broker 5.1

With debug enabled in the logger (configuration.yaml):

logger:
  default: info
  logs:
    homeassistant.components.mqtt: debug
    custom_components.my_integration: debug

It was also not working before my last update.
I have tried changing the “Enable newly added entities.” switch on and off and configuring discovery manually:

mqtt:
    discovery: true
    discovery_prefix: homeassistant

Anybody got any idea what I am missing?

Regards,
JA

1 post - 1 participant

Read full topic

How to check if someone is in bath?

$
0
0

Hello!
I want to spot this kind of spikes:

Which ways can I go?

That’s a humidity sensor and I want to know if someone is taking bath, so Home Assistant should not turn off the lights (currently I’m using motion and door sensors. It’s fine but not perfect). I can not use absolute values because in winter humidity is different from summer. That’s why I need to spot that spike.

1 post - 1 participant

Read full topic

After update to 117.2 wiffi integration stopped working

$
0
0

Hello,

after I updated to 117.2 my wiffi integration for wiffi 3.0 stopped working.

wiffi:
  servers:
    -port: 8189

Is there anybody with the same problem?

Best regards,
Stefan

1 post - 1 participant

Read full topic

Automation - today it shouldn't work

$
0
0

Hi
I have the following automation to close a cover if it is sunny outside.
Today my the 2 weather conditions were

value_template: {{states('sensor.open_weather_weather')}}  = value_template: scattered clouds

value_template: {{states('sensor.open_weather_condition')}} = value_template: partlycloudy

openweather

However today although it was not sunny at all the cover closed.
Whats wrong with the conditions?

# Close Erker Cover 2  ******************************************************************
- id: Close Erker Cover 2
  alias: Close Erker Cover 2
  trigger:
    - platform: template
      value_template: "{{ state_attr('sun.sun', 'azimuth') > (states.sensor.my_azimuth_sensor.state | int) }}"
  condition:
    condition: and
    conditions:
      - condition: state
        entity_id: input_boolean.summer_close_covers
        state: 'off'
      - condition: or
        conditions:
        - condition: template
          value_template: "{{states('weather.home') != sunny}}"
        - condition: state
          entity_id: sensor.open_weather_weather
          state: 'few clouds'
        - condition: state
          entity_id: sensor.open_weather_weather
          state: 'clear sky'
  action:
    - service: cover.close_cover
      entity_id: cover.50758014840d8e91f036 # erker
    - service: input_boolean.turn_on
      entity_id: input_boolean.summer_close_covers
    - delay: 
         seconds: '7'
    - service: cover.stop_cover
      entity_id: cover.50758014840d8e91f036

1 post - 1 participant

Read full topic


MM2 Clock Card

$
0
0

Hi there, I am trying to get this card working on HA117, but after setting it up in Lovelace config I get the following error in the logs and when trying to set up the card it fails saying the card type cant be found. Error:
GeneralServer Controls
Logs
Info
http://192.168.1.111:8123/local/mm2-clock-card.js:2:234 Uncaught ReferenceError: V is not defined
20:54:22 – components/system_log/init.py (ERROR)

Anyone able to assist, thanks

1 post - 1 participant

Read full topic

Media_play does not work

$
0
0

Greetings,

I do not seem to get my speakers to play local hosted files. I have tried numerous things. The error that I get is:

Logger: homeassistant.components.cast.media_player
Source: components/cast/media_player.py:348
Integration: Google Cast (documentation, issues)
First occurred: 9:38:52 AM (11 occurrences)
Last logged: 9:51:56 AM

Failed to cast media https://[xxx].duckdns.org/test2.mp3 from internal_url (https://[xxx].duckdns.org). Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address
Failed to cast media http://[ownIP[/test2.mp3. Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address
Failed to cast media https://home-assistant.io/images/cast/splash.png. Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address
Failed to cast media \\192.168.178.100\media\Testme2.mp3. Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address
Failed to cast media http://192.168.178.100/media/Testme2.mp3. Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address

My config:
Raspberry pi 4
HASSIO image

I have tried numerous things;

  • Setting up the external URL to https://[xxx].duckdns.org
  • TTS seems to create the TTS files on homeassistant, so it is reachable
  • Home assistant is controllable externally.
  • I can control Home Assistant via Google Assistant with the google assistant integration
  • It can cast internet hosted files, so there must be something wrong with my config to reach the home assistant instance…

1 post - 1 participant

Read full topic

Find entity that has error

$
0
0

Hi!

I know i have an climate entity that does not have the property ‘hvac_modes’ defined. But I can’t find it and I don’t know what causes it.

I can’t find any climate entities that does not work either.

The reason I know it’s there is because I use Scheduler card that crashes when clicking ADD when Climate is included in card and the error says it fails when filtering climate actions because of missing property ‘hvac_modes’.

Anyone have an idea how to identify the climate entity?

1 post - 1 participant

Read full topic

Fibaro Smart Implant - Monostable INs - How to use Scenes?

$
0
0

Hello everybody,

im very new to HA and read a lot lately about but could not really find what I need. I appreciate your help :slight_smile:

We got a new fence and years ago I forgot to lay cables for the doorbell to the outside of the house.

Thats why I bought 2 Fibaro Smart Implants, one for the door and one for the gate. With some reed relais and rectifier (doorbell needs 18V AC) everything works fine.

I configured Param 20 (IN1) with Normal open Alarm input. And connected the relais to OUT2 because in this configuration OUT1 switches everytime when IN1 is closed. This seems to be hard coded in this configuration. No problem so far, but I need two OUTs independently from the INs at the (fence)gate, because I would like to switch the lights from the side walk and the mailbox.

So I tried IN1 as Monostable and Paramt 40 with 1, 2, 4 and 8. But the OZW log only shows received scenes with 2,4 or 8 configured. (2 = double tap, 4 = tripple tab, 8 = hold and release) Those are not suitable for a doorbell I think (hold and release fires only when you hold at least 1-2 seconds)

Has anybody a suggestion why param 40 with 1 = single tab configured does not sent a scene?
And how do I use those scenes in HA? I read this: about Central_Scene configuration but the smart Implant ist not listed and I dont really get what to do here.

I tried to add the following into zwcfg_*.xml:

<CommandClass id="91" name="COMMAND_CLASS_CENTRAL_SCENE" version="1" request_flags="1" innif="true" scenecount="0">
  <Instance index="1" />
  <Value type="int" genre="system" instance="1" index="0" label="Scene Count" units="" read_only="true" write_only="false" verify_changes="false" poll_intensity="0" min="-2147483648" max="2147483647" value="0" />
  <Value type="int" genre="system" instance="1" index="1" label="Button One" units="" read_only="true" write_only="false" verify_changes="false" poll_intensity="0" min="-2147483648" max="2147483647" value="0" />
</CommandClass>

But how do I use it in automations? Any help would be great.

Thanks in advance

1 post - 1 participant

Read full topic

Dynamically create and track users as entities from an online users sensor array?

$
0
0

I have a sensor that returns a list of online users e.g.

sensor.users_online

users:
  - UserA
  - UserB
  - UserC

I’d like to automatically create an entity for each unique user name returned in the sensor array and then update their state as online if present in the sensor list and offline if not present.

Any suggestions?

1 post - 1 participant

Read full topic

Customize Hue Dimmer Switch

$
0
0

What is the best way to customize Hue Dimmer Switches? I have about 6 of them and creating automations for each button means creating 24 individual automations, and doesn’t seem pretty. Basically I want to use the dim buttons to turn on/off additional lights.
Been looking into node-red, but since they don’t have entities, I can’t figure out a proper way to do it.
HueMagic would be an option, but it feels like then I’m adding another layer of “systems” between switch->bulb possible of adding a lag, or crashing, or something going wrong…

1 post - 1 participant

Read full topic

Media Source stops playing after ~1 hour

$
0
0

I recently moved a 10-hour brown_noise.mp3 file from my www/ directory to the new media/ folder, and was able to get it to play from there on my Chromecast speakers. I thought everything was going to work perfectly, until I realized my audio randomly quit playing after about an hour and 5 minutes. This happened multiple times. At the same time it quit playing, I get a notification that “Login attempt or request with invalid authentication from localhost”. It seems like the auth expired. Is there any way around this? I want to like the new media folder, but this seems like a poor implementation if you can only play the first hour’s worth of an audio/video file…

I’ve only tried this so for on Chromecast devices; could that be part of my problem?

Am I missing something obvious here?

1 post - 1 participant

Read full topic


Shelly 1PM firmware issue

$
0
0

Hi!

I am trying to use a Shelly 1PM power relay.

I have finished the WiFi configuration, but when I try to add my integration, I get “unsupported firmware version”.

This is what the built-in web server says:

The current Firmware version of your Shelly device is 20191219-114622/1047-long-id-for-shelly-devices@d05667c7 No newer firmware available.

Here is the full web UI:

I understand that the integration requires firmware 1.8 or later. How does this date-based version compare to that?

Thanks.

1 post - 1 participant

Read full topic

Homeassistant doesn't boot without a display connnected to RPI4

$
0
0

Hi guys,

I’m new to homeassistant, is there a setting to disable the need of a screen to be attached when booting to homeassistant on the raspberry pi?
I’m using a Raspberry PI model 4.

Thank you,
Ben

2 posts - 2 participants

Read full topic

Getting multiple notifications if numeric state is above certain value

$
0
0

I am trying to make an automation that sends a notification when one of my humidity sensors is above 60%, but only if its last state was below 60%, to avoid getting notifications if it is changing from 61 to 62.

alias: Humidity alarm
description: ''
trigger:
  - platform: numeric_state
    entity_id: >-
      sensor.woonkamer_humidity, sensor.slaapkamer_humidity,
      sensor.badkamer_humidity
    above: '60'
condition:
  - condition: template
    value_template: '{{ trigger.from_state.state < 60 }}'
action:
  - service: notify.mobile_app_oneplus
    data:
      title: >-
        De luchtvochtigheid in {{ trigger.to_state.attributes.friendly_name }}
        is te hoog
      message: 'De luchtvochtigheid is {{ trigger.to_state.state }}%'''
mode: single

Does this value template work?

1 post - 1 participant

Read full topic

New "custom/compact header" - or whatever you'd call it

$
0
0

Of course I was thrilled to see the compact header being added to core. About time! (but seriously, nice job, I’m thrilled).

Though I think there’s something wrong.

I’m on 0.117.2 now, and I still have the extra line of header. What’s worse, I have the “hamburger menu” appearing twice, both in the side bar and in the top line of the header (the line that should ideally just be gone now, see screenshots). They both do the same, expand/collapse side bar.

I have cleared cache.

1 post - 1 participant

Read full topic

Howto display temperature value instead of thermometer icon on picture glance card?

$
0
0

Hi

I would like to display the current value for the outside temperature on a picture glance card.
So far, I have created a sensor that extracts it from the weather card and in the ‘developer tools’ I get the right output.

If I use that sensor in the picture glance card, it displays a thermometer instead of the value.
Can anyone please point out on how to get this done?

TIA
Nick

2 posts - 2 participants

Read full topic

Viewing all 105903 articles
Browse latest View live


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