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

Dynamic state_filter values

$
0
0

@Emaster wrote:

Hey guys!
I was trying to create a 3d floorplan with just picture-elements card and no plugins or custom cards. Just some testing:
multiple_lights_3d_test
looking good but I’m trying now to set color and brightness to the equation.

So, I was hopping to use state_filter and hue-rotate to color and opacity to brightness to accomplish this but I need a way to set those values according to the light values, is it possible?

Something like:

  - entity: light.living_room_ff
    state_image:
      'on': /local/teste_light_on_2.png
    tap_action: none
    hold_action: none
    state_filter:
      'on': hue-rotate({{states.light.living_room_ff.attributes.hs_color[0]}}deg) opacity(1)
    type: image
    style:
      transform: none
      left: 0%
      top: 0%

with ‘on’: hue-rotate(300deg) opacity(1) I get something like
room_red_light

the code so far:

elements:
  - entity: light.living_room_ff
    state_image:
      'on': /local/teste_light_on_2.png
    tap_action: none
    hold_action: none
    state_filter:
    type: image
    style:
      transform: none
      left: 0%
      top: 0%
  - entity: light.living_room_f
    state_image:
      'on': /local/teste_light2_on_2.png
    tap_action: none
    hold_action: none
    state_filter:
    type: image
    style:
      transform: none
      left: 0%
      top: 0%
  - entity: light.living_room_ff
    style:
      left: 45%
      top: 70%
    tap_action:
      action: toggle
    type: state-icon
  - entity: light.living_room_f
    style:
      left: 53%
      top: 25%
    tap_action:
      action: toggle
    type: state-icon
image: /local/teste_light_off.png
type: picture-elements

Thank you!

Posts: 1

Participants: 1

Read full topic


Garage Door Up Alert Not Working

$
0
0

@jwadsley wrote:

I think I have it setup correctly, but when the sensor says 255 which is what it takes for being in the “up” position, I don’t get an alert on my phone through the app

- id: '1589085567599'
  alias: Garage Door Open
  description: ''
  trigger:
  - entity_id: automation.garage_door_open
    for: 00:00:30
    platform: state
    to: '255'
  condition: []
  action:
  - data:
      message: The garage door is up
      title: Garage door is up
    service: notify.notify

Any help is appreciated

Posts: 2

Participants: 1

Read full topic

Favicon and title

LG WebOS - Unable to connect to host

$
0
0

@Frank_R wrote:

I’m trying to conenct an (older) LG WebOS enabled TV. Its running WebOS 1.4.
Maybe its to old but the reference page doesn’t refer to minimal requirements or a certain WebOS version.

If followed the steps and added the following to my configuration:

webostv:
  host: 192.168.x.y
  name: LGSmartTV

After restart, I receive the notfiation to start the pairing request.
I enabled the network apps from the LG config and made sure the TV has an working ethernet connection (tried wired and wireless). Ping does work, a NMAP scan shows open ports on the TV.

After the “start pairing request” I see the button flashing and immediatly turns back to “start pairing request” again. In the logfile I see an ERROR (MainThread) [homeassistant.components.webostv] Unable to connect to host 192.168.x.y. It’s so fast that I am wondering if is actually does something…

However , when I use a wrong IP on purpose this process will take a bit longer so I believe it recieves “something” from the TV?

So some questions.

  • Is WebOS 1.4 still supportted? Anyone that can confirm still is still working?
  • Any clue or hints why it will not connect?
  • Between the HomeAssistant PI and LG TV are 2 ubiquitiy switches without any special config (except enable IGMP snooping). Could that bring some additional issues?

Posts: 1

Participants: 1

Read full topic

Can't Get Venstar Integration to Work With T5800

$
0
0

@wasatchbell wrote:

I am brand new to HASS, so I hope I am posting this in the correct place.

Based on the following github post it appears that Venstar integration worked with the T5800 thermostat back in 2018: https://github.com/hpeyerl/venstar_colortouch/issues/4 (unless I’m mistaken, which could be the case…if so, please let me know).

I have tried to integrate my T5800 with Home Assistant, but with no success so far. I get the following error in my logfile:

2020-05-10 17:08:13 ERROR (SyncWorker_8) [venstarcolortouch.venstarcolortouch] Error requesting https://192.168.0.11/query/sensors from Venstar ColorTouch.
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 160, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/usr/local/lib/python3.7/site-packages/urllib3/util/connection.py", line 84, in create_connection
    raise err
  File "/usr/local/lib/python3.7/site-packages/urllib3/util/connection.py", line 74, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 677, in urlopen
    chunked=chunked,
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 381, in _make_request
    self._validate_conn(conn)
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 976, in _validate_conn
    conn.connect()
  File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 308, in connect
    conn = self._new_conn()
  File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 172, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c30dbdf10>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 725, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/usr/local/lib/python3.7/site-packages/urllib3/util/retry.py", line 439, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='192.168.0.11', port=443): Max retries exceeded with url: /query/sensors (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c30dbdf10>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/venstarcolortouch/venstarcolortouch.py", line 126, in _request
    auth=self.auth)
  File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 76, in get
    return request('get', url, params=params, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 530, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 643, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='192.168.0.11', port=443): Max retries exceeded with url: /query/sensors (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c30dbdf10>: Failed to establish a new connection: [Errno 111] Connection refused'))
2020-05-10 17:08:13 ERROR (SyncWorker_8) [homeassistant.components.venstar.climate] Failed to update data
2020-05-10 17:08:13 ERROR (MainThread) [homeassistant.setup] Error during setup of component zeroconf
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 175, in _async_setup_component
    component.setup, hass, processed_config  # type: ignore
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/zeroconf/__init__.py", line 42, in setup
    zeroconf = Zeroconf()
  File "/usr/local/lib/python3.7/site-packages/zeroconf/__init__.py", line 2153, in __init__
    interfaces, unicast, ip_version, apple_p2p=apple_p2p
  File "/usr/local/lib/python3.7/site-packages/zeroconf/__init__.py", line 2073, in create_sockets
    listen_socket = new_socket(ip_version=ip_version, apple_p2p=apple_p2p)
  File "/usr/local/lib/python3.7/site-packages/zeroconf/__init__.py", line 2011, in new_socket
    s.bind(('', port))
OSError: [Errno 98] Address in use

I also get the following associated error:

2020-05-10 17:18:23 ERROR (SyncWorker_0) [homeassistant.components.venstar.climate] Failed to update data

I have enabled the local API on my thermostat, and it appears to have one open port, specifically port 80. If I point my webbrowser there, I get the following text:

{“api_ver”:5,“type”:“residential”}

Any and all help would be greatly appreciated. The thermostate integrated easily with google home and alexa through “skyport”.

Thanks in advance!

Posts: 1

Participants: 1

Read full topic

Emulated Hue Problem with Alexa

$
0
0

@pmd5700 wrote:

I’m trying to add a couple of Z-Wave switches to Alexa via emulated_hue. I can’t seem to get only the 3 switches I want added. It keeps adding more items. I’ve tried the following 2 configurations in my configuration.yaml file. With either option, if I go to 192.168.XXX.XXX:80/api/pi/lights I see only the three lights I want. However, whenever I discover using Alexa (the website, not the app). I get a bunch of my other lights and switches and duplicates of these three. Each time, before re-discovering, I remove all items from Alexa via the website.

emulated_hue:
  host_ip: 192.168.XXX.XXX
  listen_port: 80
  expose_by_default: false
  exposed_domains:
    - light
    - switch
  entities: 
    switch.jasco_products_14288_duplex_receptacle_switch:
      name: Light
      hidden: false
    light.jasco_products_14294_in_wall_smart_dimmer_level_3:
      name: Couch Light
      hidden: false
    light.jasco_products_14294_in_wall_smart_dimmer_level_2:
      name: Hall Light
      hidden: false
emulated_hue:
  host_ip: 192.168.XXX.XXX
  listen_port: 80
  expose_by_default: false
  entities: 
    switch.jasco_products_14288_duplex_receptacle_switch:
      name: Light
      hidden: false
    light.jasco_products_14294_in_wall_smart_dimmer_level_3:
      name: Couch Light
      hidden: false
    light.jasco_products_14294_in_wall_smart_dimmer_level_2:
      name: Hall Light
      hidden: false

For instance, in the first picture below, you can see two instances of “Couch Light”. You can also see two instances of “Entry Light”. “Entry Light” is a regular hue bulb connected through a Hue Hub, and “Couch Light” is a z-wave switch so there should be no other way it could be added except through HA. In the second picture below, you can see duplicates of other bulbs connected directly to the Hue Hub. These have the exact same descriptions.


In this next picture, you can see devices that are (I think) exclusive to HA but are also getting added. My iPhone is picked up. I have that added through UniFi in HA for occupancy detection. It’s also picking up my Roku’s which are added into HA. You can also see that my “Office Light” is getting picked up 3 times…

Posts: 1

Participants: 1

Read full topic

No devices created in homematic add-on?

$
0
0

@FranknStone wrote:

I have homeassistant 0.109.6 with homematic integration and hmip-rfusb.
I habe 2 hmip-bwth, web ui of homematic is working and there are created 2 entities for each hmip-bwth with correct values. I can change the values in home assistant but for these entities there are no devices so that i cannot change the room for example.
Why are the devices missing but entities are present?

My config of add in:
1 rf_enable: false
2 wired_enable: false
3 hmip_enable: true
4 rf:
5 - type: CCU2
6 device: /dev/ttyAMA0
7 wired:
8 - serial: xy
9 key: abc
10 ip: 192.168.0.0
11 hmip:
12 - type: HMIP_CCU2
13 device: /dev/ttyUSB0
14 regahss_reset: false

and in configuration.yaml:
homematic:
interfaces:
hmip:
host: core-homematic
port: 2010
username: Admin
password: xxxxxxx
resolvenames: json
groups:
host: core-homematic
port: 9292
username: Admin
password: xxxxxxx
resolvenames: json
path: /groups

Is it correct, that only entities are created and no devices?

Posts: 1

Participants: 1

Read full topic

[FIXED] Template and variables not evaluated

$
0
0

@lilbuh wrote:

hey all :slight_smile: i m having trouble with a template ( again )

- service: 'mqtt.publish'
      data:
        payload_template: '{"intentFilter": "Again", "sessionId": {{session_id}}, "customData": {{volume}} }'
        topic: 'hermes/dialogueManager/continueSession'
        retain: true
    - service: 'persistent_notification.create'
      data_template:
        message: '{{session_id}}'

the mqtt published is:

{"intentFilter": "Again", "sessionId": , "customData":  }

the variables are not evaluated in the payload
but i do get the session_id in the notification :confused:
tryed to several escapes strings but cant find why

thank you for your help

Posts: 2

Participants: 1

Read full topic


Deleting Ghost Entities

$
0
0

@amarant59 wrote:

I’m currently using HA on my Ras 4. I have a few ghost entities that were created when adding z-wave devices and then removing them. I would like to get rid of them but I can’t seem to find a way to delete them. Am I overlooking something? Please advise

Posts: 1

Participants: 1

Read full topic

Setting up on more than one iDevice

$
0
0

@bucksbass wrote:

Loving the new QR Code setup, I tested it on my iPhone with a view to rolling it out to my wife’s phone for a nice filtered and simple interface. Scanned the QR code and set up mine fine, the QR Code has of course now gone. Any idea how I can re-display the code to set up another phone?

Posts: 1

Participants: 1

Read full topic

How to - Detect iOS firmware version (and then impose tyranny)

$
0
0

@kebel87 wrote:

Hi everyone,

I have a rather tyrannic little project involving stuff I’m not ready to admit (like blocking my wife iPhone and iPad from the Wifi if she fails to update firmware after multiple notifications).

My network hardwares are UniFi and I’m using Node Red so I’ll easily be able to issue a command blocking the client from WiFi.

What I couldn’t figure tho, is how to detect her iOS version. Somehow I think it was there in the past, but I couldn’t locate it today.

Does anyone know how to check for device iOS version?

Posts: 1

Participants: 1

Read full topic

Garage Automations

$
0
0

@jwadsley wrote:

Can someone please check my code? I want to do the following

At any time, if the garage door is open for more than 4 minutes, send a notification to my phone through the App

15 minutes before sunset until sunrise, when the garage door is opened, immediately turn on the garage switch, which is connected to a light string

- id: '1589085567599'
  alias: Garage Door Open Notification
  description: ''
  trigger:
  - entity_id: binary_sensor.vision_security_zg8101_garage_door_detector_sensor
    for: 00:04:00
    platform: state
    to: 'on'
  condition: []
  action:
  - data:
      message: The garage door is up
      title: Garage door is up
    service: notify.notify
- id: '1589151804789'
  alias: Garage Lights After Dark
  description: ''
  trigger:
  - entity_id: binary_sensor.vision_security_zg8101_garage_door_detector_sensor
    platform: state
    to: 'On'
  condition:
  - before: sunset
    before_offset: -00:15
    condition: sun
  action:
  - device_id: bcd5830564b84a25814151cef5d83a29
    domain: switch
    entity_id: switch.garage
    type: turn_on
- id: '1589155041397'
  alias: Garage Door Closed
  description: ''
  trigger:
  - entity_id: binary_sensor.vision_security_zg8101_garage_door_detector_sensor
    platform: state
    to: 'off'
  condition: []
  action:
  - device_id: bcd5830564b84a25814151cef5d83a29
    domain: switch
    entity_id: switch.garage
    type: turn_off

Posts: 1

Participants: 1

Read full topic

Help needed setting up 2 templates

$
0
0

@mkanet wrote:

I would like to use the template feature to change the way the below entity values are displayed my cards.


Example 1:

If I display the value for entity: sensor.sm_a505u_battery_level in a card, it will display as:

SM-N960U Geocoded Location       1234 Huntington Way, Bumington, WA 12345, USA

I would like to change it to say:

Joseph       1234 Huntington Way, Bumington, WA 12345, USA

…also, how do I override the respective icon for this entity? I tried specifying “- icon: mdi:xxx” in the card code, however that obviously wasn’t right.


Example 2:

If I display the value for entity: binary_sensor.ecolink_door_window_sensor_sensor in a card, it will display as:

On

I would like to change it to say:

Open

…and, if it displays, Off to change it to display Closed, respectively.

I was able to make a template for this, however, it’s still not right. I don’t get any errors, however, the value for sliding_glass_door always shows as off in lower case letters.

binary_sensor:
  - platform: template
    sensors:
      sliding_glass_door:
        value_template: "{%if states.binary_sensor.ecolink_door_window_sensor_sensor.state == 'On' %}Open{%elif states.binary_sensor.ecolink_door_window_sensor_sensor.state == 'Off' %}Closed{% endif %}"
        friendly_name: 'Sliding Glass Door'

I really hope this isn’t too much to ask for someone to help out. But, I REALLY tried before posting. I would really appreciate the help to get two working templates.

Posts: 1

Participants: 1

Read full topic

Xiaomi Products with HUSBZB-1 USB Hub

$
0
0

@venture wrote:

I’m looking at getting some Xiaomi leak sensors. For my zigbee devices, I’m using the HUSBZB stick and don’t really want (or have room for) another hub. Is it possible to use these without Deconz or the Aqara hub? If not, does anyone have another leak sensor recommendation?

edit: added links

Posts: 1

Participants: 1

Read full topic

Bluetooth speaker as media player

$
0
0

@zorrua wrote:

Hello,

I have a bluetooth speaker and I want to use it as media player. I have a Intel NUC with Debian and HA container in host mode.

How could I configure it?

I will really appreciate any help.

Kind regards.

Posts: 2

Participants: 2

Read full topic


Trigger automation on sensor unavailable

$
0
0

@currest2620 wrote:

Wondering if anyone can shed some insight into this.

I have written an automation to turn on and turn off a switch when ever the temperature reading becomes “unavailable” as a way of resetting the sensor. I want it to trigger if the sensor is unavailable for five minutes. The automation does what is intended when triggered manually, but it won’t trigger otherwise.

The script:

- id: '1587721504100'
  alias: Spare room sensor reboot
  description: Reboot when temperature is unavailable
  trigger:
  - entity_id: sensor.spare_room_temperature
    for: 00:05:00
    platform: state
    to: unavailable
  condition:
  - condition: device
    device_id: 11e0ee306d1d48db9dc073f174ddf583
    domain: switch
    entity_id: switch.powerboard_1_usb
    for:
      hours: 0
      minutes: 10
      seconds: 0
    type: is_on
  action:
  - device_id: 11e0ee306d1d48db9dc073f174ddf583
    domain: switch
    entity_id: switch.powerboard_1_usb
    type: turn_off
  - delay: 00:00:10
  - device_id: 11e0ee306d1d48db9dc073f174ddf583
    domain: switch
    entity_id: switch.powerboard_1_usb
    type: turn_on

Can anyone see why it won’t trigger?

Posts: 1

Participants: 1

Read full topic

ECOWITT Weatherstation integration for Home Assistant

$
0
0

@rontaylor wrote:

I am trying to get this integration going but not quite sure how.


I have followed the setup guide as best I can but not sure what I am doing wrong when adding the config to my configuration.yaml file as keep getting I"invalid config when I check my configuration.

This is my setup on my ECOWITT HP2551
From the HOW to Setup Guide…
Pick the protocol Ecowitt, and put in the ip/hostname of your hass server. Path doesn’t matter, pick the default. Pick a port that is not in use on the server (netstat -lt). (4199 is probably a good default) Pick a reasonable value for updates, like 60 seconds. Save configuration. The Ecowitt should then start attempting to send data to your server.

I actually configured this on my display using the keys at the bottom of the pic.


The code below is supposed to be added to configuration.yaml but no matter what I have tried it, it does not seem to be correct. I keep getting a message that the integration ecowitt does not exist???
ecowitt:
  port: 4199
  barounit: metric
  windunit: imperial
  rainunit: imperial
  windchillunit: hybrid

Anyone got any ideas on where I am going wrong?

I have this HP2551 unit reporting to Weatherunderground and Ecowitt.net but was wanting to grab a few things off it for my HA automations.
This is what is on ecowitt.net from my uploads.

Posts: 1

Participants: 1

Read full topic

Light group on/off if ALL lights are on/off (SOLVED)

$
0
0

@kthomsen wrote:

Hi,

Not sure how to explain this well, so bear with me. I’m kiiinda new to Home Assistant, and I’m messing with grouping some lights, which is fine. It works for turning on/off groups of light.

In this case I have a group of lights for downstairs and upstairs, and also ALL lights (in the entire house). So e.g. downstairs I have 3 groups. Bathroom, Living room and kitchen.

My problem is:
If I turn on Bathroom light, the group “Downstairs” is also registered as being on.
So when I look in my logbook, not only is the Bathroom on, but also Downstairs and All Lights.

Is it possible to define that I don’t want these groups to be “on” unless ALL lights within that group of lights are on?

So “Downstairs” won’t be “on” unless Bathroom, Kitchen and Living room is on?

Or is there another way around this?

Thank you!

Posts: 7

Participants: 2

Read full topic

History Graph for pH MQTT

$
0
0

@free118 wrote:

Hello,
I’m pretty new to HA and curently I try to get the pH Value of my Aquarium into HA to create a pH controller via automation.
The automation and the MQTT part are working fine.

Current goal is to show the pH value as History graph, maybe together with the relay state of the CO2 relay.

I’ve created following MQTT sensor and I get suffent values for pH.

- platform: mqtt
    name: "Nano PH"
    state_topic: "NanoAquarium/ph"
    qos: 0
    unit_of_measurement: "pH"  //tried PH & ph as well

But it looks like that HA interpret the value still as discret instead of continuos, because the bar graph show up in the History Graph in lovelace.

If I change the unit_of_measurement from “pH” to “°C” the histroy graph it tranformed to an °C/time graph (but measuring in °C is not correct here …).

What can I do to show a pH/time diagram in an history graph ?
And is there a list of supported Unit’s for “unit_of_measurement” availible ? I couldn’t find anything.

Thanks

Posts: 1

Participants: 1

Read full topic

Weather sensors

$
0
0

@Tony2k wrote:

I need to add wind, light, rain, temperature and humidity sensors on Hassio to control shades, air conditioning, indoor lights and irrigation. I see nice sensors array like this, they works con 433 mHz so I think that can work with RFLink. Anybody tried to do this?

Posts: 1

Participants: 1

Read full topic

Viewing all 106260 articles
Browse latest View live


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