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

State of one entity depending on other 2 entities

$
0
0

@ongcaps wrote:

Hi All,

First of all, thank you to this great community. I have HA for 2 years and it is the first time I need to write a post (because all the information is there!)

My set up:

  1. A synology running a docker container with HA and mainly tasmotized sonoffs
  2. I have an electric valve that controls whether I use the hot water coming from the solar energy system or from the water heater. I control that with 2 relays of a sonoff 4CH Pro with tasmota
  3. I have an automation that every time the temperature of the water in the solar system goes below 35 degrees it switches the relay to move the valve and use the boiler (and switches it off after 30 seconds) and if it goes above 35 it switches the other relay to move the valve in the other direction.

My 2 problems

  1. I want to know when I am using the solar or the electric system in a given moment. I thought that I could create a new entity that would capture when each of the relays goes to ON but I do not know if this is possible (or even if it is a good idea)

  2. The automation is triggered every time the sensor updates the temperature. How can I trigger the automation just when the temperature crosses 35 degrees in one or other direction?

Any idea is welcomed. Thank you in advance!

Daniel

Posts: 2

Participants: 2

Read full topic


WebOSTV could not be set up

$
0
0

@jboeyink wrote:

HI All,

I am trying to add my LG smart tv to my Home assistant configuration, however when i try to use the webostv platform component i get the following error in my notifications tab after i restart HA:

The following components and platforms could not be set up:

Please check your config.

This is my entry in my config file:

webostv:
host: 192.168.x.xx
name: Living Room TV

Hopefully somebody can point me in the right direction to properly troubleshoot and fix the issue.

Thanks in advance.

Posts: 2

Participants: 2

Read full topic

Can't log in after update

FGR223 Does not work at all :(

$
0
0

@Pl0uuuuf wrote:

Hi,

First, sorry for my bad English… :confused:

I have been using Jeedom for 1 year in my house with success (FGR222, FGR223, FGS222, FGRM222, …).

I am trying to switch to the last version of Home Assistant but I can’t.

None of my 8 FGR223s works.
They are well detected on HA but the buttons are grayed out (look join file).

I suspect a bad setting but I try all the combinations possible, I can’t do it.

Have any of you runway or already encountered this blockage?

note that the FGS222 and FGMS222 as well as the FGR222 work perfectly

I can provide any log or conf files if you have any ideas.

Thanks in advance, I’ve been struggling for too long.

Friendly
Pl0uuuf

Posts: 1

Participants: 1

Read full topic

Homeassistant user password unknown

$
0
0

@dthporro wrote:

hi there! i’ve managed to install hassio on a virtual environment of my rpi3b, it’s working fine but i can’t integrate mqtt, so i can’t pair any device.

this guide is what i used to install hassio:

as you can see, i created the homeassistant user, for later creating the virtual environment, but i didn’t create a password for it, the manual didn’t say anything about that.

now i’m stuck, because i can’t edit configuration.yaml of hassio on that virtual environment, i don’t know exactly where’s that file, and the path to it, googling around i’ve been trying things… but everytime i got stuck in the same, almost anything that i do in that virtual environment requires password, that i don’t have.

what can i do? is not there where i should search for configuration.yaml? of what am i missing?

thank you!

Posts: 2

Participants: 2

Read full topic

Help! Cant find or make custom_components

$
0
0

@Shannondalebreaux wrote:

I am running HA on Windows 10 with a virtual box. I can’t figure how to make custom_components folder and access it to paste HACS into the folder. Can some ome please help.

Posts: 1

Participants: 1

Read full topic

Camera feed in Notification

$
0
0

@Bcoole wrote:

Hi everybody,
been playing with home assistant on my raspberry again since a while now.
and got a lot of cool stuff working.
i love it and learned a lot thanks to reading all the input of you experts.
But there is one thing i can’t get to work and that is a camera feed in a ios push notification.
everything is working but when i open the notification the camera feed keeps loading but not showing.
i can see the camera feed in the UI.

Posts: 1

Participants: 1

Read full topic

Hue Dimmer With Conbee II Automation Unreliable

$
0
0

@cds wrote:

Hi,

Here’s my setup:

  • Home Assistant running in a VirtualBox VM on a Windows 10 host
  • Conbee II USB with Phoscon app running natively in Windows 10 (I had problems using the Deconz add on)
  • Philips Hue Dimmer (RWL021)

I built a few automations using the Home Assistant GUI so that I could turn on the living room lamp (IKEA Trafri) with one press of the ‘on’ button, and the ceiling lights (3 x Lifx) with a second press, the ‘off’ button performing the reverse. The dimmer buttons are configured to adjust the brightness of whatever is switched on at the time.

This works really nicely a lot of the time, but sometimes the automations fail to trigger when I press the buttons. When I use the event listener subscribed to ‘deconz_event’, I can see that every single button press is being registered (and pretty much instantly). However, they are reporting event codes of ‘1002’ and ‘4002’ for example, while the automations I built with the GUI are based on triggers such as this:

domain: deconz
platform: device
subtype: turn_on
type: remote_button_short_press

I’m wondering why these triggers aren’t activating when the dimmer continues to report event ids.

Any ideas? Thanks

Posts: 1

Participants: 1

Read full topic


Error with new version 107.6 - groups.yaml

$
0
0

@henaa wrote:

Hi all
So evrything work perfect until the update.
What you think the problem ?

groups.yaml

  radio:
    name: Radio 
    view: no
    icon: mdi:radio
    entities:
    - input_select.radio_station
    - input_select.radio_speakers
    - input_number.radio_volume
    - input_boolean.radio_play

conifguration.yaml

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml

The error :

Posts: 1

Participants: 1

Read full topic

Play a local playlist on google home

$
0
0

@Roemer wrote:

Hello all
I would like to create a small dashboard for my children to play their audio books on a google home speaker.
I created m3u playlists and put the im the home assistant www folder, the entries point to a http service which provides the mp3 files.
I then created a small script that sends the m3u playlist to a media player.
This actually works great when the media player is for example my pc with Kodi on it.
But if I try to use the google home speaker as media player, it does not play anything. If I send a single mp3 it plays fine. I guess google home does not understand playlists.
What ways are there to do that?
I had several ideas:

  • Just merge all mp3s from a playlist to a single mp3 and play that (no track skipping is then possible)
  • Play the playlist on any other player (eg. Kodi?) and stream that to google home (which would mean the other player needs to be running as well
  • Somehow create a script in home assistant that will send one file after another to the google chrome (how to do this? Is this even worth it?)
  • Other ideas?
    Many thanks for your help!
    Roman

Posts: 1

Participants: 1

Read full topic

Sensor command_line value template is wrong

$
0
0

@Mariusthvdb wrote:

using

  - platform: command_line
    name: Hue Daylight info
    command: !secret hue_daylight_command
    value_template: >
      {{'on' if value_json.state.daylight == 'true' else 'off'}}
    json_attributes:
      - state
      - config
      - name
      - type
      - modelid
      - manufacturername
      - swversion
    scan_interval: 300

I would have hoped to see the state to be ‘On’ right now, since this is the output of the full value_json:

{"state":{"daylight":true,"lastupdated":"2020-03-27T05:42:00"},
 "config": {"on":true,"configured":true,"sunriseoffset":15,"sunsetoffset":-45},
"name":"Daylight",
"type":"Daylight",
"modelid":"PHDL00",
"manufacturername":"Signify Netherlands B.V.",
"swversion":"1.0"}

The sensor is created alright:

and this is what it looks like in the developer-tools/template:


Please have a look what s wrong in the value_template,
thanks!

Posts: 17

Participants: 4

Read full topic

ZHA Lights Turning on Randomly?

$
0
0

@MCExpy10 wrote:

Hi all! I have some Sylvania Lightify Zigbee lights that I use outdoors in the front of my house. One of the lights is turning on randomly at night for a second then shutting off.

I was looking through security footage and my cameras are considering it an event, so as I look back I’m seeing this event a couple times a night for at least the past month. It’s only 1 of the 4 on the front of the house, and it’s the closest one to the hub (husbzb-1). I’m guessing it’s relaying the Zigbee signal to the rest as they’re kind of far away.

I tried a different bulb, and the new one does the same. I also updated the firmware of the new and old bulb. The old bulb in a different location (a lamp for example) does not turn on randomly. The new bulb in the outdoor fixture still does the same.

Looking through some of the settings I see this “ota” binding. Some things I’m reading indicate that maybe HA is sending a pulse to the bulbs and causing this?

Anyone have any insight as to what’s going on? I can’t imagine my neighbors are too pleased. LOL!

Posts: 1

Participants: 1

Read full topic

How to migrate Z-Wave devices to new HASS server?

$
0
0

@ctownj30 wrote:

An update hosed my install and I’m starting from scratch, although I can access the old machine’s file system.

What is the general process to migrate z-wave devices from one install to another? The source is very recent (whatever was current in Jan) and the target will be the latest?

Saw some guides on the forums but they look to be outdated.

Thanks - djm

Posts: 1

Participants: 1

Read full topic

Can't remove integration

$
0
0

@JonathanThornander wrote:

Hi! I am trying to re-add the SMHI-integration due to some problems i’ve got with it but whenever I press the trash-icon from the integrations-page nothing happens, nor can I add the integration again. I got this log: “Error occurred loading configuration flow for integration smhi: No module named ‘smhi’”. It seems like some parts of the system still recognize the integration while others do not. Has anyone encountered this before? Thanks!

Edit: I solved it by adding smhi to custom_components

Posts: 1

Participants: 1

Read full topic

HELP for new dashboards

$
0
0

@valepe wrote:

I’m using Lovelace in yaml mode.
How can I change my configuration to have multiple dashboards?

I think that the actual ui-lovelace must remain for Overview purposes.
Do you have some examples?

Posts: 1

Participants: 1

Read full topic


Using Statistics Sensor for measuring Power Consumtion (Tasmota Sensors)

$
0
0

@Prokktor wrote:

Hi,

I have multiple POWR2 and Blitzwold SHP2 with Tasmota and I want to get more out of the measurements :slight_smile:

I am using utility meter to calculate monthly consumption, that will probably work, but I need to wait for next month to see results.

utility_meter:
  tv_strom_monat:
    source: sensor.powerplug2_energy_total
    cycle: monthly

Then I wanted to use the statistics sensor to calculate the average daily consumtion over the last 30 days:

 - platform: statistics
   name: 'Statistik Computer Strom 30d'
   entity_id: sensor.powerplug3_energy_yesterday
   sampling_size: 60
   max_age:
     days: 30      

Here I have some questions:

  1. “count” starts out at 60, how can there be 60 values before the source value even changed once, it even calculated a sum by multiplying the source by 60… that makes no sense
  2. Sometimes the source value will show 0 for a short time because of a reset or something, how can I prevent that from beeing sampled?
  3. Does the statistics sensor calculate the timespan of the values? If I have 0 for 4 hours and 1 for 1 hour is the mean 0.5 or 0.2?
  4. Am I doing it completely wrong?^^

Regards,

Martin

Posts: 1

Participants: 1

Read full topic

Ssh command in command line switch failed

$
0
0

@schlauerlauer wrote:

Hi!

I’m having trouble with a command line switch with an ssh command

this is my configuration.yaml snippet:

switch:
  - platform: command_line
    switches:
      win10:
        command_on: "ssh -i /config/.ssh/id_ed25519 ha@192.168.178.4 sudo virsh start win10"
        command_off: "ssh -i /config/.ssh/id_ed25519 ha@192.168.178.4 sudo virsh destroy win10"
        command_state: "ssh -i /config/.ssh/id_ed25519 ha@192.168.178.4 sudo virsh dominfo win10 | grep running"
        friendly_name: "Windows VM"

error message:

Command failed: ssh -i /config/.ssh/id_ed25519 ha@192.168.178.4 sudo virsh start win10

I put the ssh keys in the config directory because of this answer.
If I run the commands from the ssh terminal plugin it works just fine…

Additional Information:
Hassio 0.107.7 on RPi4

Thank you for your help!

Posts: 1

Participants: 1

Read full topic

How to place devices in area (0.107)

$
0
0

@fich wrote:

I’m trying hard to find where to assign an area to my devices.
On page config -> areas it says:

To place devices in an area, use the link below to navigate to the integrations page and then click on a configured integration to get to the device cards.

[Integrations page]

I follow the link, open up a device and it will show me the device, options for automation etc, but so far I haven’t found anywhere to assign area.

What am I missing?

Posts: 3

Participants: 2

Read full topic

Resize card width for mobile browser

Make sure single execution of script

$
0
0

@APayerl wrote:

I’d like to know if there is any way to create a script and make sure that it is “static”?

For example:
I have my script where I am lowering a IKEA blind to a specified value and then wait for x seconds and then raise the blind again…
Now I want it to be like if I start the script and it executes to the delay and I then executes the same script again, I want the old runtime to just be terminated and the new runtime to continue as normal…

How would I accomplish such a feat? :smiley:

Posts: 3

Participants: 3

Read full topic

Viewing all 106083 articles
Browse latest View live


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