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

Strange thermostat behaviour

$
0
0

I have a setup of 6 thermostats to control a floor heating system and one electric heater. All of a sudden the electric heater thermostat has started to behave very strange. It turns the heater on and off in 10 minutes intervals. The set point is stable and the measured temperature is also fairly stable. At least it does not explain this behaviour. I attach a screendump of the log book. It is the service.home_assistant.turn_off that turns off the switch and 4 minutes later the switch is turned on again. Unclear what triggers this.

The switch is a zigbee switch controlled by MQTT. All other thermostats (that are stable) are implemented with GPIO over MQTT. Looking at the zigbee2mqtt log, I see MQTT payload commands changing the switch states.

Has anyone seen a thermostat behaviour like this? Since it just one out of six thermostats that screws up and this is based on zigbee devices, it easy to draw the conclusion this is related to zigbee. However, all thermostat devices are controlled by MQTT, so the physical interace should not have any impact on Home Assistant.

1 post - 1 participant

Read full topic


Interact with Lovelace displayed on a Google Cast?

$
0
0

Hi

I was thinking to use a Google Cast device to display Lovelace interface on a display but how do I interact with Lovelace in such configuration ?

Thanks for explanations :wink:

Vincèn

1 post - 1 participant

Read full topic

Zigbee & bticino living now rolling shutter. cover position problem

$
0
0

HI all,
sorry for my bad english in first!
I’ve recently installed the .qcow2 image on a proxmox vm.
The device that i nned to control via HA are all zigbee device ATM, connected switch bticino K4003 and connected shutter control bticino K4027C.

i’ve successfully integrated the zigbee device with conbee2 and deconz addon, and it’s fully working for basic usage!

now i would to create some scene (eg night-> set cover1 to 90%, cover 2 to 40% etc etc)

the problem is that i can set the positivion with deconz, but non in HA!

in deconz i can control the position of the cover with “go to lift percentage” command, and the current position is read correctly in the attributes of the device

The position of cover is also read correctly (even if inverted) in HA (i can chek it trough hass-shutter-card integration.
Schermata 2022-04-28 alle 10.31.47

But if i try to set a new position through this integration the cover doesn’t go to the desidered position.

i’ve tryed to use developer tool to invoke the service “cover.set_cover_position” or “cover_set_tilt_position”
but with no luck!

it seems that in HA is missing the service to set the LIFT position or i don’t understand how to correct set the position of my shutter (motorized roller shutter).

Can someone please help me?
Regards,
S.

1 post - 1 participant

Read full topic

Automation Support: Actionable Push Notification when TV turned on after 19:00 to Enable Night Sound on Sonos

$
0
0

Hello all,

First post, and noob for HA. I’ve finally taken the chance to amalgamate all my smart kit into one place. I’m pretty happy with where I’m at, I’ve used HACS to add additional devices using API’s etc.

I’m now looking to build some automation between devices now they’re all in one place.

We’ve got a 2 year old that goes to bed around 19:00, so figured it would be cool to prompt on our phones that when the TV is turned on, do we want to enable ‘night mode’ on our sonos Beam.

I’ve read up on a few threads/tutorials, and have built the following using the UI rather than editing configuration.yaml directly. But what I’m not sure on is why I can’t trigger the entity ‘switch.sonos_lounge_night_sound’ to on when pressing the actionable push notification?

Script below:

- id: '1651129291824'
  alias: Sonos Night Mode Push Notification
  description: ''
  trigger:
  - platform: device
    device_id: 849e6b384a1f992c69e179841d38c5ca
    domain: media_player
    entity_id: media_player.lounge_tv
    type: turned_on
  condition:
  - condition: time
    after: '19:00:00'
  action:
  - service: notify.notify
    data:
      title: Sonos Night Mode
      message: Do you want to enable Night Mode, Oliver may be in bed?
      data:
        actions:
        - action: switch.sonos_lounge_night_sound
          title: Enable
  - wait_for_trigger:
    - platform: event
      event_type: ios.notification_action_fired
      event_data:
        actionName: switch.sonos_lounge_night_sound
    timeout: '10'
  - condition: state
    entity_id: switch.sonos_lounge_night_sound
    state: 'On'
  mode: single

1 post - 1 participant

Read full topic

Trigger every X time

$
0
0

I want to trigger an automation every minute after my door remains open.
I saw that an alert could solve this for the notification part, but I would also like to trigger a TTS warning.

The problem is that the automation is triggered every multiple of 1min and not every 1min since the door remained open.

Here is my code:

- id: '1651058576746'
  alias: Front door left open
  description: ''
  trigger:
  - platform: time_pattern
    minutes: /1
  condition:
  - condition: state
    entity_id: binary_sensor.front_door
    state: 'on'
  action:
  - service: tts.google_translate_say
    data:
      entity_id: media_player.nestmini3072
      message: Front door left open!
  - service: notify.notify
    data:
      title: Door/Window sensor
      message: Front door left open

Any way to solve this please?

1 post - 1 participant

Read full topic

Formula based statistics graph

$
0
0

Hi there!
I’m diving into the rabbit hole of long term statistics, and came across quite a specific problem:
I would like to see statistics on the dominant wind direction in a given time window. Since we are talking compass headings where 359° and 1° are separated by 2° and not 358°, I cannot use a simple average of the compass heading. The average for the above example is obviously 0° (North), but a normal average would give the opposite result, 180° (South)

The solution for this is to have template sensors that log the sine and cosine of the wind direction, averaging those over time, and performing an arctan of the averages to get the average wind direction. This is discussed in this thread in detail: Filter wind direction - #13 by Kimble8650

However, when using long term statistics, the solution would be similar - I log the statistics of the sine and cosine of the wind direction, but in order to display the average wind direction I would need to, at the time of rendering, calculate the arctan based on the sine and cosine statistics.

Is there a way for me to do this, to display a statistics graph based on a calculation of two separate statistics?

1 post - 1 participant

Read full topic

Google Voice with Paradox alarm

$
0
0

Hi. I have managed to get my HA integrated with Google assistant but cant seem to get my alarm showing up on Google home to be able to arm disarm via voice.

I have all the domains exposed and cant see it on G Home. can anyone suggest how to get this working. Maybe create a switch that triggers the alarm and then bring the switch into Google home, since the switches are showing up there.

1 post - 1 participant

Read full topic

Help with dynamic json sensors

$
0
0

Hello,
What I want to achieve is populate dynamic sesnors from xml file attached bellow. Now what I can achieve is to using this config and populatin each manually. The issue is that listeners are various amount. How to mane it dynamic?

rest: 
  resource: https://redacted
  method: GET
  scan_interval: 120 
  sensor:
    - name: "Radio 1"
      json_attributes_path: "$.LISTENERS.Listener[0]"
      value_template: "OK"
      json_attributes:
        - IP
        - Status
        - Pts
    - name: "Radio 2"
      json_attributes_path: "$.LISTENERS.Listener[1]"
      value_template: "OK"
      json_attributes:
        - IP
        - Status
        - Pts
    - name: "Radio 3"
      json_attributes_path: "$.LISTENERS.Listener[2]"
      value_template: "OK"
      json_attributes:
        - IP
        - Status
        - Pts
    - name: "Radio 4"
      json_attributes_path: "$.LISTENERS.Listener[3]"
      value_template: "OK"
      json_attributes:
        - IP
        - Status
        - Pts
    - name: "Radio 5"
      json_attributes_path: "$.LISTENERS.Listener[4]"
      value_template: "OK"
      json_attributes:
        - IP
        - Status
        - Pts
    - name: "Radio 6"
      json_attributes_path: "$.LISTENERS.Listener[5]"
      value_template: "OK"
      json_attributes:
        - IP
        - Status
        - Pts
    - name: "Radio 7"
      json_attributes_path: "$.LISTENERS.Listener[6]"
      value_template: "OK"
      json_attributes:
        - IP
        - Status
        - Pts
<LISTENERS>
<Listener>
<Status>1</Status>
<Station>Radio 2</Station>
<IP>127.0.0.1</IP>
<SubID>0</SubID>
<NextPayment>1651142286</NextPayment>
<Feedback>1651141566</Feedback>
<Pts>3.75</Pts>
</Listener>
<Listener>
<Status>1</Status>
<Station>Radio 2</Station>
<IP>127.0.0.1</IP>
<SubID>0</SubID>
<NextPayment>1651141682</NextPayment>
<Feedback>1651141562</Feedback>
<Pts>1.50</Pts>
</Listener>
<Listener>
<Status>1</Status>
<Station>Radio 2</Station>
<IP>127.0.0.1</IP>
<SubID>0</SubID>
<NextPayment>1651142227</NextPayment>
<Feedback>1651141567</Feedback>
<Pts>12.00</Pts>
</Listener>
<Listener>
<Status>1</Status>
<Station>Radio 3</Station>
<IP>127.0.0.1</IP>
<SubID>0</SubID>
<NextPayment>1651141722</NextPayment>
<Feedback>1651141542</Feedback>
<Pts>12.00</Pts>
</Listener>
<Listener>
<Status>1</Status>
<Station>Radio 2</Station>
<IP>127.0.0.1</IP>
<SubID>0</SubID>
<NextPayment>1651141995</NextPayment>
<Feedback>1651141575</Feedback>
<Pts>0.50</Pts>
</Listener>
<Listener>
<Status>1</Status>
<Station>Radio 2</Station>
<IP>127.0.0.1</IP>
<SubID>0</SubID>
<NextPayment>1651141813</NextPayment>
<Feedback>1651141573</Feedback>
<Pts>9.00</Pts>
</Listener>
<Listener>
<Status>1</Status>
<Station>Radio 3</Station>
<IP>127.0.0.1</IP>
<SubID>0</SubID>
<NextPayment>1651141933</NextPayment>
<Feedback>1651141573</Feedback>
<Pts>3.00</Pts>
</Listener>
</LISTENERS>

1 post - 1 participant

Read full topic


Daily Rain at a configurable time of day

$
0
0

I have automated my Garden sprinklers using Smart irrigation custom component.

This uses the daily rainfall as one of the calculation inputs. Now I want to run the sprinklers at 6 in the morning, but my Netatmo daily rain sensor resets at Midnight.

Since I also want to use rain that falls between then and 6 in the morning for the calculation, I need a way to store last days value showrtly before midnight and add anything that comes in after.
Also the value measured till 6 has to be subtracted the next day.

How can I achieve this?

1 post - 1 participant

Read full topic

HomematicIP devices don't refresh

$
0
0

Hi everyone,

i’m running a fresh Homeassistant (core on ubuntu) and already managed to add most of my devices.
But one integration is not working as expected: I have a lot of HomematicIP(Accesspoint) stuff and Homeassistant found all of them.
Now i created a few dashboard for weather and heating and i noticed that it doesnt seem to get updated (like outside temp). If i refresh the HmIP-Integtration then it also updates the current outside-temp.

the logs show:
Error connecting to HomematicIP with HAP 3014F711A00003DA499EB709. Retrying in 16 seconds 14:00:08 – (FEHLER) HomematicIP Cloud - Die Nachricht ist zum ersten Mal um 27. April 2022, 16:19:59 aufgetreten und erscheint 342 mal wait_for() got an unexpected keyword argument 'loop' 14:00:08 – (FEHLER) /srv/homeassistant/lib/python3.10/site-packages/homematicip/aio/connection.py - Die Nachricht ist zum ersten Mal um 27. April 2022, 16:19:59 aufgetreten und erscheint 342 mal

Do you have any tips or hints where to look?

Thanks!
Christoph

1 post - 1 participant

Read full topic

Is the Nabu Casa Remote Connection Inconsistent?

$
0
0

I’m newish to HA, have been using the Nabu Casa Remote System from the beginning.

HAOS VirtualBox Windows10

In the last few months I’ve noticed the Remote Connection service (or HA) has become quite inconsistent. At least 2 to 3 times a month, I loose the remote access connection to my HA Instance, while other internet services continue to work.

Is anyone else noticing this?

The corrective action for me seems to be: Turn off the Remote Control button, wait a few minutes and turn it back on. After a few more minute, the connection is restored.

This is a major issue for me, as this action requires on-site access to recover the remote connection.

Also, I don’t understand the difference between Cloud Connection Status (and that it is connected) and Remote Control (and that being NOT connected), how are they different?

Here are some screen shots.

FireFox

Logs (not sure if these are related to the issue, but…

HA

2 posts - 2 participants

Read full topic

Sony Bravia TV integration does not permit sleeping/standby

$
0
0

Hello there.

My FW-49BZ35F TV is frequently pulled by Home Assistant every 10s. Even if it is OFF, it can’t go sleeping. This is noticeable by looking on power consumption, dropping any packet from HA to IP_ADDRESS:80 using iptables permits the TV to enter sleep mode, otherwise the Wi-Fi (same with Ethernet) interface is still pingable and no REAL sleep is reached.

I’m not interested in wake up my TV programmatically (wake on lan), but I definitely want to save these watts after I turn it OFF. As a workaround I tried to disable the 2 entities created by the integration, it works. I have tried to create an automation which disables the entities after the tv goes from ‘on’, to ‘off’ status (re-enabling after 5 minutes). That would be enough to permit the sleeping while keeping the integration working and saving money as well :slight_smile: Unfortunately I haven’t found any method to disable an entity programmatically.

What can I do? Is there any real solution for this?

1 post - 1 participant

Read full topic

Z-Wave Device ID?

$
0
0

I’m trying to locate the Device ID for my Z-Wave locks…I’m sure it’s obvious in Z-Wave JS, but I’ve been through the entire Z-Wave JS and Zwave2MQTT configs and can’t seem to find it. Example of what I’m looking for below:

For any other events, a config_entry_id needs to be provided.
device_id: 45d7d3230dbb7441473ec883dab294d4 # Garage Door Lock device ID
entity_id:
- lock.front_lock
- lock.back_door

1 post - 1 participant

Read full topic

Hive plug Zigbee2MQTT power usage

$
0
0

Hello,
I’ve been using hive plugs via zigbee2mqtt for a while. I put them back onto to the HIve hub at Christmas, and I’ve finally got around to move them back to the cc2531 stick. I can switch them on and off ok, but the sensor.hiveplug_power doesn’t appear to be reporting any values.
Does anyone know if Hive/BG have updated the firmware, so it doesn’t give us this value anymore?
The one I left connected to HA still works ok. showing me the power being used.

1 post - 1 participant

Read full topic

Delay between switch input and output

$
0
0

I have a GIRIER Tuya ZigBee 3.0 Switch Module (TS0002_switch_module
) installed on a wall switch that controls a light bulb.

I set up an automation on HA so when the switch state changes I turn on another light that is connected to a sonoff zbmini. The light that is connected to the sonoff zbmini turns on faster that the one connected directly to the TS0002. I’m talking on something around 100ms but it is a little annoying.

Since there isn’t a sonoff zbmini with 2 outputs do you recommend me another 2 output zigbee device to try? I would like something identical to sonoff zbmini where I can’t notice the delay between the input and the action.

Thank you

1 post - 1 participant

Read full topic


How to setup Xbox Home Assistant app?

$
0
0

I installed the HA app on the Xbox One X. I specified the IP address and port in the settings. When I try to login with User and Password, I get an error messages saying:

"Message format incorrect: required key not provided @data['client_id']

I couldn’t guess what it was complaining about. I tried getting a token since there was a spot for token in the Settings and entered the whole long, long, long, long, token string. But, of course, that didn’t make any difference.

Then I guessed that the 2 factor authentication might be a problem so I turned that off on HA. (not sure if just turning it off was sufficient or whether the HA needed to be restarted.) Just turning it off didn’t see to make any difference. Not sure how to DO 2 factor auth on the Xbox One X anyway, if it is a requirement.

Firstly, does anybody have a guess as to what is wrong. Secondly, is the long term token required? And lastly, are there instructions on setting up the Xbox One X somewhere?

1 post - 1 participant

Read full topic

Opening and Closing state of Roller Shutter

$
0
0

How can i amend my cover template code to be able to get opening and closing states for the roller shutter door ?

2 posts - 2 participants

Read full topic

Accurately depict "arriving home". bayesian / zones

$
0
0

So I’ve just began toying about with bayesian sensor and I can 100% see the benefits of it, but I can’t put my finger on an accurate set of rules that will make sense 99% of the time.

I’ll walk you through my sensor and it’s observations.
I have a “Tile” tracker on my keys (Lat/Long)
Tracker through personal device (Lat/Long)
Front door status locked (this might be a red herring as it’ll be locked most of the time in/out)
If personal device is connected to Wifi.

So currently the most “weighted” option I’ve given to my personal device being on wifi, as if I’m on my wifi, there is a very good (pretty much 100%) chance I am home.

My end goal here is to effectively do “things” based on certain times of the day when I am on my way back home, example, I walk the dog first thing in the morning, so if I’m “arriving home” before 9AM, I want my coffee machine to come on (prep takes about 30 seconds for it to heat up).
If I am “arriving home” after 5PM, and the door is locked, unlock the door ready for my arrival (this is the end goal, but obviously the sensor needs to be pretty fool proof).

My issue is, it seems to fire multiple times rather than just once, and I guess this could be due to wifi drop outs or other sensor periodic updates.

How do you guys do it?

Am I missing something really obvious?

I know homeassistant has “Zones” but I’ve had quite mixed results with the accuracy of the data honestly. And I don’t want to know if I am “in” a zone, I want to know if I’ve gone from being “not in a zone” to in zone “home” etc.

1 post - 1 participant

Read full topic

Template is cutting a digit 0 but should not

$
0
0

I’m using a template in a custom card (here vacuum card).

stats:
  default:
    - entity_id: sensor.mahroboter_messerqualitat
      value_template: '{{ "{0:_.0f}".format(1230) }}'
      unit: '%'
      subtitle: without replace
    - entity_id: sensor.mahroboter_messerqualitat
      value_template: '{{ "{0:_.0f}".format(1230).replace("_",".") }}'
      unit: '%'
      subtitle: with replace

Result

image

The 0 is not displayed.

This is (currently) only happending, if last digit is 0, compare to this

image

Any ideas on this, as it is working in developer tools, other cards, etc. but the card author says, that it is not a problem of the card, because is rendered via the HA backend and that the template is getting sent to the backend and the result is displayed.

The the DOM it is shown as

image

1 post - 1 participant

Read full topic

No media player cover art

$
0
0

Seems that no matter which media player I use I can’t seem to get any cover art display. I’ve tried the standard media card, mini media player, and mushroom media card.

The entities I’m trying to make work are TV’s to get a screen scrape of what’s being watched. TV’s are both Hisense U6G with android TV version 9. Tried different apps (Netflix, Disney+, YouTube, etc) and nothing will display any cover art.

I noticed in Mushroom Media Player card that I get a broken image icon every few seconds, but not sure where it’s looking to get the cover art. The standard media player card just gives a blue background, and mini media player card is no background.

I’ve searched every thread I can find for this issue and haven’t been able to come to a conclusion or resolution. Would really appreciate any help that you could give or any suggestions as to what may be happening.

1 post - 1 participant

Read full topic

Viewing all 99655 articles
Browse latest View live


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