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

Using templates for automation if/else true/false

$
0
0

@simatao wrote:

Hi,
my first attempt in using templats - of course not successful. Idea is, to trigger an automation only, if I had been out of the house for at least 10 minutes, to not constantly turn my lights on if there is a little gap in the wifi connection.

I’m using hass.io on a raspberry pi.

{%set stamp_now = as_timestamp(utcnow())%}
{%set stamp_gone = as_timestamp(states.automation.leaving_the_house.last_changed)%}
{%set time_since_gone = ((stamp_now-stamp_gone)/60)| round(0) %}
Left the house {{time_since_gone}} min ago
{% if time_since_gone > 10 %}
true 
{%- else -%}
false
{%- endif %}

hassio tempalte

Posts: 1

Participants: 1

Read full topic


Device tracking - Router

$
0
0

@4integration wrote:

Hi,

Do I understand from postings that if I want device tracking based on devices connected to my router ( RT-AC66U) I only need

asuswrt:
  host: 192.168.1.1
  username: admin
  password: password

and not

device_tracker:
  - platform: asuswrt
    host: 192.168.1.1
    username: admin
    password: password
    new_device_defaults:
      track_new_devices: true

Running the latest HA 0.110.5 (soon 0.110.6)

Right?

Posts: 1

Participants: 1

Read full topic

Fibaro RGBW controller UI

$
0
0

@4integration wrote:

Anyone that have an working Fibaro RGBW z-wave controller installed and configured with useable UI in Lovelace?

Can you please share your configuration?

Posts: 1

Participants: 1

Read full topic

Issue with Utility Meter

$
0
0

@mspinolo wrote:

Hi guys,

I have an issue with utility meter I can’t figure out: browsed the forum but it was of no help.

So I have 1 shelly devices (1PM and 2.5) which are reporting instantaneous consumption.

Shelly 1PM
grab 2020-06-09 alle 19.48.50

Shelly 2.5
grab 2020-06-09 alle 19.50.15

as you may notice both having correct unit of measurement.

Now I am integrating these by:

1PM

- platform: integration
  source: sensor.shelly_shsw_pm_e641f5_current_consumption
  name: "Integrated Domotica Power (h)"
  round: 2
  unit_time: h
  unit_prefix: k

2.5

- platform: integration
  source: sensor.shelly_shsw_25_bcddc2774577_1_current_consumption
  name: "Integrated Deumidificatore Bagno P-1 consumption"
  round: 2
  unit_time: h
  unit_prefix: k

but while the 1PM integrated sensor has expected unit of measurement (kWh) 2.5 one doesn’t have any.
As a result utility meter do not correctly work.

I tried to manually add unit of measurement:

- platform: integration
  source: sensor.shelly_shsw_25_bcddc2774577_1_current_consumption
  name: "Integrated Deumidificatore Bagno P-1 consumption"
  round: 2
  unit_time: h
  unit_prefix: k
  unit: kWh

and the sensor get it correctly, nevertheless utility meter lead to this:

1PM
grab 2020-06-09 alle 19.56.56

2.5
grab 2020-06-09 alle 19.56.20

Can someone help?

Posts: 1

Participants: 1

Read full topic

Tradfri Motion Sensor E1745 | Zigbee2MQTT | Node-RED

$
0
0

@18days wrote:

Hi all. I have seen lots of posts for the old version of this motion detector, however not many posts regarding the newer E1745 Ikea sensor with the fixed 3-minute timeout.

The problem I had was trying to get the motion detector to retrigger when movement was detected, rather than ignoring it. To be blunt, if you were in the bathroom the light regularly went out.

Even if you extended the light to remain on for 10 minutes and you left the bathroom after 8 minutes and someone else entered the room at 9 minutes, it would not extend the bulb to remain on for a further 10 mins, it would actually turn off after 1 minute.

Anyway, with help from @BertrumUK he has managed to resolve my issue and to get it to work exactly how I wanted it to work.

I have an Ikea Bulb and the E1745 senor both connecting to a Zigbee2MQTT device.
The light is set to come on for 7 minutes and retrigger for a further 7 when movement is discovered.

I will share the Node-Red code below so you can import if you wish

=======================================================

[{"id":"fcb1e70c.208e88","type":"server-state-changed","z":"4622b911.dc6908","name":"Bathroom PIR","server":"69b349b6.863ad8","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.0x678ae2fffe3564f7_occupancy","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"on","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"x":90,"y":120,"wires":[["13841e25.d89c82"],[]]},{"id":"69b349b6.863ad8","type":"server","z":"","name":"Home Assistant","addon":true}]

Posts: 1

Participants: 1

Read full topic

KNX, actual/requested temperature & generic thermostat

$
0
0

@Nick4 wrote:

Hi all

I have a KNX touch display which is also configured to control the pump from the heatingsystem.
The display has an internal temperature sensor and I’m trying to also get control through HA.

I have succeeded to get the generic thermostat card to work somehow but…

  1. the slider does control the pump correctly (based on requested temp)
  2. the actual temp reading is correct (corresponds with touch panel)
  3. switching the heating (pump) off works

But… the HA thermostat control works independently from the KNX control: changing one has no influence on the other and vice versa.
I’m using a normal KNX actuator which is switching the pump on/off and I have 3 addresses:

  • 0/0/6: requested temperature => knx_reqtemp
  • 0/0/7: measured temperature => knx_acttemp
  • 0/0/8: switch pump => heating.pump

I’m struggling with the requested and measured temperatures

config:

sensor:
- platform: knx
  name: knx_acttemp
  type: 'temperature'
  state_address: '0/0/7'
- platform: knx
  name: knx_reqtemp
  type: 'temperature'
  state_address: '0/0/6'

switch:
  - platform: knx
    name: heating.pump
    address: '0/0/8'

climate:
  - platform: generic_thermostat
    name: Thermostaat
    heater: switch.heating_pump
    target_sensor: sensor.knx_acttemp
    min_temp: 15
    max_temp: 30
    ac_mode: false
    target_temp: 23
    cold_tolerance: 0.5
    hot_tolerance: 0
    min_cycle_duration:
      seconds: 5
    keep_alive:
      minutes: 3
    initial_hvac_mode: "off"
    away_temp: 16
    precision: 0.5

Any idea what I’m missing/doing wrong?

Thanks a lot in advance!
Nick

Posts: 1

Participants: 1

Read full topic

Zigbee2mqtt not detecting/paring devices

$
0
0

@xrado wrote:

Hi,

interesting is that I already had it working for quite some time until my SD card died. I’ve reinstalled fresh hassio on my rpi 3 B+ but this time on SSD. Everything works fine, just zigbee2mqtt is not detecting devices when I put them in pairing mode. Nothing happens. I used to see it in the log when the device was detected.

Any idea what could be wrong?

This is log from zigbee2mqtt (log_level: debug):

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
./run.sh: line 17: [Info] Configuration backup found in /share/zigbee2mqtt/.configuration.yaml.bk. Skipping config backup.: No such file or directory
[Info] Socat is DISABLED and not started
2020-06-09T20:01:00: PM2 log: Launching in no daemon mode
2020-06-09T20:01:00: PM2 log: App [npm:0] starting in -fork mode-
2020-06-09T20:01:00: PM2 log: App [npm:0] online
> zigbee2mqtt@1.13.1 start /zigbee2mqtt-1.13.1
> node index.js
zigbee2mqtt:info  2020-06-09 20:01:05: Logging to console and directory: '/share/zigbee2mqtt/log/2020-06-09.20-01-05' filename: log.txt
zigbee2mqtt:debug 2020-06-09 20:01:05: Removing old log directory '/share/zigbee2mqtt/log/2020-06-08.23-05-02'
zigbee2mqtt:debug 2020-06-09 20:01:06: Loaded state from file /share/zigbee2mqtt/state.json
zigbee2mqtt:info  2020-06-09 20:01:06: Starting zigbee2mqtt version 1.13.1 (commit #unknown)
zigbee2mqtt:info  2020-06-09 20:01:06: Starting zigbee-herdsman...
zigbee2mqtt:debug 2020-06-09 20:01:06: Using zigbee-herdsman with settings: '{"network":{"panID":6754,"extendedPanID":[221,221,221,221,221,221,221,221],"channelList":[11],"networkKey":"HIDDEN"},"databasePath":"/share/zigbee2mqtt/database.db","databaseBackupPath":"/share/zigbee2mqtt/database.db.backup","backupPath":"/share/zigbee2mqtt/coordinator_backup.json","serialPort":{"baudRate":115200,"rtscts":true,"path":"/dev/ttyACM0"},"adapter":{"concurrent":null}}'
zigbee2mqtt:info  2020-06-09 20:01:08: zigbee-herdsman started
zigbee2mqtt:info  2020-06-09 20:01:08: Coordinator firmware version: '{"type":"zStack12","meta":{"transportrev":2,"product":0,"majorrel":2,"minorrel":6,"maintrel":3,"revision":20190223}}'
zigbee2mqtt:debug 2020-06-09 20:01:08: Zigbee network parameters: {"panID":6754,"extendedPanID":"0xdddddddddddddddd","channel":11}
zigbee2mqtt:info  2020-06-09 20:01:08: Currently 0 devices are joined:
zigbee2mqtt:warn  2020-06-09 20:01:08: `permit_join` set to  `true` in configuration.yaml.
zigbee2mqtt:warn  2020-06-09 20:01:08: Allowing new devices to join.
zigbee2mqtt:warn  2020-06-09 20:01:08: Set `permit_join` to `false` once you joined all devices.
zigbee2mqtt:info  2020-06-09 20:01:08: Zigbee: allowing new devices to join.
zigbee2mqtt:info  2020-06-09 20:01:08: Connecting to MQTT server at mqtt://core-mosquitto
zigbee2mqtt:info  2020-06-09 20:01:08: Connected to MQTT server
zigbee2mqtt:info  2020-06-09 20:01:08: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online'
zigbee2mqtt:info  2020-06-09 20:01:08: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"version":"1.13.1","commit":"unknown","coordinator":{"type":"zStack12","meta":{"transportrev":2,"product":0,"majorrel":2,"minorrel":6,"maintrel":3,"revision":20190223}},"log_level":"debug","permit_join":true}'

Posts: 1

Participants: 1

Read full topic

Neo Coolcam motion sensor DEAD (orphan) Entities re-add them?

$
0
0

@Hassio wrote:

Hi members,

I have a little problem with some zwave nodes in my Home assistant zwave network.
I have 10 Neo Coolcam motions sensors (V2) But for some reason, they were not updating the temperature and the luminance!

I tried to heal the zwave network and did a server restart, but after the restart, the temperature, and luminance meters were on “unavailable”.

I did remove the nodes because the status was:
This entity is currently unavailable and is an orphan to a removed, changed, or dysfunctional integration or device. If the entity is no longer in use, you can clean it up by removing it.

Is there a way to re-add only those entities? From what I am seeing now, is that I have to remove all the nodes and add them again, but then I will lose all of my automation and it will be a lot of work to recreate the automation! the motion sensors on them are still doing fine and show no error at all.

Posts: 1

Participants: 1

Read full topic


Integrate Nest camera using generic camera platform

$
0
0

@urbo83 wrote:

Hello,

Since new Nest/Google accounts are not able to integrate the Nest Camera using the Nest platform, I’m wondering if is there any way to connect the Nest Camera to Home Assistant using the Generic IP Camera platform.

I’ve tried using this configuration:

- platform: generic
  still_image_url: https://video.nest.com/live/chuspitruskiwatchikey
  password: !secret nest_password

But it doesn’t work (and no errors are being registered).
Maybe I have to set other settings or change the URL or auth method used?
Someone tried this before?

Thanks in advance,
Carles

Posts: 1

Participants: 1

Read full topic

Clear out watching/tracking on topics

$
0
0

@pergola.fabio wrote:

Hi

i have a lot of topics in “tracking” status
how can i clear them out all at once , so they are back in normal state?
i can only find a way, todo it one by one :slight_smile:

thnx

Posts: 1

Participants: 1

Read full topic

Z-Wave Device Config Database

Help with YAML spacing for a simple template binary sensor

$
0
0

@ADHawk wrote:

Hi,

I’m having some trouble with the spacing for a template binary sensor. Here’s what I have right now:

binary_sensor:
  - platform: skybell
    monitored_conditions:
      - button
      - motion
      
#Living Room Motion
  -  platform: template
     sensors:
       living_room_motion:
       friendly_name: "Living Room Motion"
       device_class: motion
       value_template: "{{ is_state('sensor.zooz_living_room_burglar', '8')}}"

I get this error when I check my config:

Configuration invalid
Invalid config for [binary_sensor.template]: expected a dictionary for dictionary value @ data['sensors']['device_class']. Got 'motion'
expected a dictionary for dictionary value @ data['sensors']['friendly_name']. Got 'Living Room Motion'
expected a dictionary for dictionary value @ data['sensors']['living_room_motion']. Got None
expected a dictionary for dictionary value @ data['sensors']['value_template']. Got "{{ is_state('sensor.zooz_living_room_burglar', '8')}}". (See ?, line ?). 

I realize it’s something silly I’m overlooking, but any help is appreciated. Thanks.

Posts: 2

Participants: 2

Read full topic

Calendar Events off by a week

$
0
0

@atomicpapa wrote:

I know I saw something about this somewhere else, either here or Reddit, but I have searched both as thoroughly as I know how, and cannot find anything. So, here goes…

Events on the new calendar page in the UI are showing up a week in the past. I.e. I had an event scheduled in Google Calendar for today at 3pm. In the HA UI, the event is showing up for June 2nd at 3pm. I know at least one other person was experiencing the same issue, but has a resolution been found?

TIA

Posts: 1

Participants: 1

Read full topic

Unnamed device in history

$
0
0

@mf_social wrote:

I updated a few components in hacs earlier and since then I’ve got an ‘unnamed device’ in my history…

Problem is, I honestly can’t remember which components I updated, but I can say with certainty that it appeared after doing the reboot after updating in hacs (I get telegram messages to say there’s updates on hacs and then I also get them when homeassistant restarts and of time of this entity appearing is the same as the restart after the hacs update)

I’ve looked in my states list and device pages and cannot find any other references to it, but I’d like it either gone or correctly named.

So - anybody else got this and can help me narrow down which integration it’s from?

I have breaking_changes, deepstack object, garbage collection, hacs and logbook cache for integrations if anyone has a match.

Thanks :slightly_smiling_face:

Posts: 1

Participants: 1

Read full topic

Device automations & disabled entities?

$
0
0

@finity wrote:

I just had the potential to use a device automation for the first time (I ended up not using it but that’s another thread) and I noticed that all of the “devices” for every single disabled device still shows up in the UI editor drop down list.

And to make it worse they’re all called “unnamed device” without any hint of why they are there or where they come from:

So to see if I could figure out where they came from I looked in my “devices” list and found that every one of them comes from the Unifi integration.

If I look at the entities for my Unifi integration I only have 10 or so actually in use and the rest are all disabled. My understanding was that disabling those entities was supposed to hide them from the system. Apparently it only hides them from the entities page and the states page. Every one of them is still being displayed in the integrations list (ironically if I click on the “75 entities” link I get taken to the entities list and only the 10 I’m using actually show up there :roll_eyes: I bet that’s confusing to a noob…)…

ex3

…and offered for use in the editor - with the attendant requirement to have to scroll thru 70 completely useless devices to find one that I might want to use. If I was even partially tempted to ever use the device automation UI editor that has given me yet another reason to stay away.

Is there some reason why disabling entities won’t automatically disable a device when the device=the entity?

Or why don’t we have the same ability to disable devices like we do with the entities?

Or more logically why don’t I have the ability to delete devices/entities from my system and block them from coming back if I so choose?

I can’t see at all as to how this counts as “make it easy”.

What am I missing?

Posts: 1

Participants: 1

Read full topic


Using Custom Cards

$
0
0

@ZombiEd wrote:

I’m trying to install a custom card but can’t get it to work. I’m following what I think is the latest guidance and install the url in the Lovelace panel under resources:
lovelace1

and put the js file in the www folder.

lovelace2

but it doesn’t seem to be working. Have I missed a step?

Posts: 1

Participants: 1

Read full topic

Missing group icon in mini-media-player-bundle

$
0
0

@jsnyderman wrote:

Hi all. I’m using the mini-media-player-bundle add-in from @kalkih. I just updated to the latest level and I am trying to add a “speaker-group”. I am not getting the group icon in the upper right of the card. Anyone else using the speaker-group object? My code is below. Can anyone tell me what I might be missing?

          - type: 'custom:mini-media-player'
            entity: media_player.office_sonos
            hide:
               power: true
            speaker_group: 
               platform: sonos
               show_group_count: true
               entrities:
                 - entity_id: media_player.office_sonos
                   name: Office Sonos
                 - entity_id: media_player.kitchen_sonos
                   name: Kitchen Sonos
                 - entity_id: media_player.livingroom_sonos
                   name: Livingroom Sonos
                 - entity_id: media_player.living_room
                   name: Livingroom Beam

Thanks!

Posts: 1

Participants: 1

Read full topic

Advice Pls: ATV differentiation of Plex/Infuse and other streaming apps

$
0
0

@CrouchingWorm wrote:

Hi folks,
I’m after some advice before I embark on my next automation if I may.
My setup:
Denon AVR - integrated into HA
AppleTV 3rd and 4th gen
Netflix and other streaming apps installed
Plex Server (I use both Infuse and Plex Apps on the ATV)

I currently control my lights via the Hue Plugin in Plex - works a treat across both Infuse and Plex native app.
I use the Denon and smart switches (with power monitoring) to control other functions around the room say for xbox, nintendo switch and so on via the discrete Denon Inputs (and power consumption of those consoles).

However when we watch Netflix I currently don’t have a way to control lights as the Denon is simply set to AppleTV input. The same AppleTV input could be playing Plex content, any of the catch-up services, Netflix, Hulu, etc. So no elegant way to determine what is happening.

My question (finally):
What information can I get from the AppleTV once it’s integrated into HA?
Is it simply playing, not_playing and the like?
If so, I could create an automation with not-conditions to avoid overlaps with Plex and other automations?
Does it tell you via attributes (for example) what it’s playing, via which app and so on?

Thanks so much!

Posts: 1

Participants: 1

Read full topic

What device is this? And can It be integrated with HA?

$
0
0

@CrouchingWorm wrote:

Hi folks,
I’m hoping this community might know what this device is and whether it might be able to integrated into HA.


It is a wall-mounted Galaxy TabS mount powered by PoE. The shroud changes colour based on calendar events from a booking engine.
I rescued it from a storeroom at my office.
It was used as a room booking kiosk, changes colour based on availability of that resource.
The Galaxy Tab is fine, the shroud is fine. Have factory reset it.
There’s nothing meaningful on the board(s) to help me identify where to begin looking.
It has the words Lit Technologies Rev V1.0 on it…
Assume the Galaxy Tab registered on the corp network, spoke to email svr, then via an APK (or something) changed colours via the micro-usb. The LED control board appears to be powered via the 3.5mm socket on the Galaxy Tab.

Too hard or worth a play?

Posts: 1

Participants: 1

Read full topic

Person - More info popup map zoom level

$
0
0

@Bruskey27 wrote:

Hey guys

Does anyone know if its possible to adjust the default zoom level of the map when clicking on a person entity’s “more info” tab. Currently, when i go into the more info section the map is zoomed in all the way.

Posts: 1

Participants: 1

Read full topic

Viewing all 107085 articles
Browse latest View live


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