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

UniFi client stays blocked in USG after unblock - UniFi bug?

$
0
0

@DebugBug wrote:

So I recently started using the UniFi integration to easily block/unblock wired devices in my household. But I have had to restart my USG (Firewall) the last couple of days to get PC’s online again after block. It’s like they keep being blocked, after unblocking them, have tried blocking/unblocking from the UniFi app as well. When this problem occur, the clients can access everything on the inside of the network, but can not ping the internal IP of the USG - all other devices (than have not been blocked) can. After a USG reboot, everything works.
Has anyone else experienced something similar?

Posts: 1

Participants: 1

Read full topic


Mikrotik DHCP table in LoveLace

$
0
0

@miroslavpetrov wrote:

I think many of you have the same problem - having too many devices connected to your LAN network. For example I have 3 Raspberries, 15+ Shellies and Sonoffs which I need to access using their IP address and every time I need to check the DHCP leases in my Mikrotik router to get the IP of the desired device.
So I was thinking to somehow fetch the DHCP leases table from my Mikrotik and show it in lovelace. Has any of you done such a thing or maybe something similar?

Posts: 1

Participants: 1

Read full topic

Using Item Select as in Array in Automations

$
0
0

@lonebaggie wrote:

Not sure if this has been documented anywhere, but I have been using Input select as Global variables lists (Arrays) in Automations.

Take the following input Select

Array:
    name : Array Test
    options:
      - Option A
      - Option B
      - Option C
      - Option D

You can convert this to a list in JInga2 with the following

{% set arraytest = state_attr("input_select.array","options") %}

You can extract an array element by using

`{% set obj = arraytest[1] %}` 
{{obj}}

This will return ‘Option B’ Jinga2 lists start at element 0

I use this to trigger actions from Alexa using a virtual bulb . The brightness level corresponds to an element in the item select.

see

Hope this is of some use

Posts: 1

Participants: 1

Read full topic

MQTT json data parse specific value to sensor

$
0
0

@kslb wrote:

Hi,

I need help with configuring sensor which receive data from MQTT.

So, when I listen to MQTT broker:
image

I get data like this:

Sporočilo 0 prejeto v OilFox ob 8:32:
{
...
    "devices": [
        {
...
            "measurementIntervalInSeconds": 86400,
            "metering": {
                "value": 12,
                "fillingPercentage": 95,
                "liters": 1803,
                "currentOilHeight": 134,
                "serverDate": 1589813339698,
                "battery": 100
            },
...
            }
        }
    ]
}

So how to configure sensor that I read specific data (in my case “liters”) which need be readed as integer type…

  - platform: mqtt
    name: "Trenutni nivo olja"
    state_topic: "OilFox"
    value_template: '{{ value_json.devices[0].metering[0].liters | int }}'
    icon: mdi:hydraulic-oil-level
    unit_of_measurement: L

THANK YOU for help…

Posts: 1

Participants: 1

Read full topic

Add Aqara (v3 hub) sensors to Home Assistent

$
0
0

@Frank_R wrote:

HI, I’m a bit confused because a lot op topics about Aqara v3 hubs appears to be old and not right anymore. Also the documentation only mentions the v1 and v2 hubs.

Obviously the v3 model (the one with RGP light & speaker) is the homekit model and seems te be supported as well by HA. Connection was pretty straightforward. It was actually found automatically and the only thing was to add the homekit code that was printed on the back of the hub.

Next, I added on temperature/humidity sensor to the HUB via the Xiaomi app and made sure it works.

It was not showing up immediately in HA but after a while it did and the temp & humidity worked. (I was playing around with various setting for other purposes, so I don’t know if i triggered some manual required action).

Next, the 2nd temperature sensor! Again, added to the Xiaomi app and make sure it works. An now…wait…and wait. Restart HA, rebooted the HUB, but no 2nd sensor in HA…

At the same time I also renamed the first sensor in the Xiaomi app to the non-default one to give it a more meaning full name however the old name is still in HA.

My questions,

How to add sensors to HA, as the official docs only refers to V1 and V2 and all forum topics are about non-working sensor types (that most seems to work at this time of writing). As the first worked automatically (or I did something unintentionally) I’m believe others should be auto-detected as well? Or is some manual config required?

Q2: If names are changed in the Xiaomi app, do they automatically change in HA as well?

Posts: 1

Participants: 1

Read full topic

How to count media players playing?

$
0
0

@Heijt771 wrote:

Hi all,

I currently use the below code to count the amount of lights that are on in my place:

  - platform: template
    sensors:
      lights_on:
          value_template: >
           {% set lights = [
             states.light.tv_light,
             states.light.table_light,
             states.light.kitchen_light,
             states.light.bedroom_light,
             states.light.wardrobe_light,
             ] %}
           {{ lights | selectattr('state','eq','on') | list | count }}

However when I tried adapting it to count media players playing, it does not work. As I do not fully understand how to work with templating I was hoping someone could tell me how to count the currently active media players.

This is my non-working code:

  - platform: template
    sensors:
      media_players_active:
          value_template: " {{ states.media_player | selectattr('state','eq','on') | selectattr('state','eq','playing') | list | count }}"
           {% set states.media_player = [
             states.media_player.bed_room_display,
             states.media_player.bedroom_tv,
             states.media_player.kitchen_speaker,
             states.media_player.living_room_speaker,
             states.media_player.living_room_tv,
             states.media_player.shield_tv,
             ] %}
             

Looking forward to your replies.

Cheers

Posts: 1

Participants: 1

Read full topic

RGB Light Effect List?

$
0
0

@dailand wrote:

I’ve successfully flashed Tasmota, onto a number of Zemismart RGBW Downlights, and got them all working within Home Assistant.
When you click to change colour - you also get a selection box for effect (0-5) but selecting an effect does nothing ?
Do i need to configure the effect’s elsewhere or is that a function that perhaps other lights can do, but the Zemismart cannot ?

Posts: 1

Participants: 1

Read full topic

Automation based on dates

$
0
0

@countjuh wrote:

Hi everyone,

First of all i want to thanks everyone with all the help i got with different kind of issues.
Im struggling with an automation i want to get going :slight_smile:

I have this dates:
image

What i want. When for example the date of ’ Avri gft’ is the actual date, i want to get a message from pushbullet and a notification in Lovelace. Anyone has an idea how to get this to work?

Thanks!

Posts: 1

Participants: 1

Read full topic


First entry in sunset/sunrise automation not triggering?

$
0
0

@h0bbel wrote:

For a couple of weeks now (possibly longer, not entirely sure) I’ve been having issues with sunrise/sunset automations for some IKEA Trådfri lights. One of three lights didn’t get turned on or off, but turning it on/off manually in HA works as expected. This is a simple automation, basically just a sunset/sunrise one, with no offset.

Last night I realized that the light that doesn’t respond, is always the first one called in the automation. I added a 2 second delay as the first entry for both automations, and that sorted the issue out. Not sure if the delay is skipped (as it’s the first action) or not, but now the lights behave properly.

Anyone else seen something like this? Not a huge issue by any means, just a little peculiar.

I’m running v0.109.6, but this has been an issue here for the last couple of releases — not sure when it first started sadly.

Posts: 1

Participants: 1

Read full topic

Trigger time_pattern with input_number

$
0
0

@andreaconfa wrote:

Hi all,
i have this automation trigger:

 trigger:
   - platform: time_pattern
     minutes: /15

I want if is possible to change the minutes with an input number… is possible? if yes how?

Also i have this action:

action:
    - delay: "00:{{ '{:02}'.format(range(0, 13) | random | int) }}:00"

and i want to be able to use two different input_number to change the 0 and the 13 that are the range of the random … anyone have some suggestion?
Thanks

Posts: 1

Participants: 1

Read full topic

使用home assistant商业化、产品化案例?

Media_player.play_media not working with spotify

$
0
0

@brunoamaral wrote:

I’m trying to start a specific playlist with a script, but keep getting an error saying that extra keys aren’t allowed.

'1589884237793':
  alias: Play Spotify
  sequence:
  - data:
      media_content_id: "spotify:playlist:0Rl855D2r6w4SYHyLfSPHh"
      media_content_type: "playlist"
    entity_id: media_player.living_room_tv
    service: media_player.media_play

The error says Failed to call service script/1589884237793. extra keys not allowed @ data['media_content_id']

I’ve been through the documentation and examples here in the forum but nothing seems to work. Any ideas on what I might be missing?

Posts: 1

Participants: 1

Read full topic

Port Fowarding with Google wifi

$
0
0

@Kamal_Krishna wrote:

Hi,
I have Home assistant running successfully.
Sorry NooB, I could not work configuring to access remotely.
I tried several tutorials but no luck, I followed and configured duckdns as instructed but unable to understand how to Port forward on a Google Wifi network.

Can someone please help.

Posts: 3

Participants: 2

Read full topic

Is it possible to set up the trusted_networks by Hostname?

$
0
0

@Supakdee_Sodsriwiboo wrote:

I use the Amazon echo to control different switches. (according to Amazon Alexa Smart Home Skill integration).

I always get the notification: Login attempt or request with invalid authentication from 34.227.112.142. IP is varied.

When I check those IP, I found they’re from Amazon AWS (Hostname: ec2-34-227-112-142.compute-1.amazonaws.com). The start of the hostname can be different according to IP but it always end with amazonaws.com

Are there any possibilities to set up the trusted_networks by Hostname e.g. *.amazonaws.com?

Or are there any solutions to prevent notifications for those IPs?

Posts: 1

Participants: 1

Read full topic

Virtual machine hassio microphone

$
0
0

@danny20i wrote:

Hi All!

I would like to try Hey Ada! and Rhasspy and for that I created a Virtual Machine from HassOs.
The problem is home assistant does not recognize my mic and my speaker.
The only option in the settings is "Default’ which is not working.

Thanks for the help!

Posts: 1

Participants: 1

Read full topic


Need some help animated background

$
0
0

@jan.mob wrote:

Can someone explain to me how it is possible that if I load hassio from home https://192...* me background does not work but if I load it from outside my home with duckdns it works well?
And I cant get back my hacs icon on the left.

Thanks

Posts: 1

Participants: 1

Read full topic

Is this a bug?

$
0
0

@Jay_Heavner wrote:

I’m using the UI to create an automation. I go to Configuration > Devices and click a device. For the sake of this example I’ll use a Sonos device in my bedroom. From the specific device screen, I click the blue plus to create a new automation. From the popup, I select “Bedroom is playing” from the “Only do something if…”. This brings me to an automation with a Condition set for my device. I got to Actions, Call service, light.turn_on and pick the bedroom light.

I get an error that says “Message malformed: Integration ‘’ not found”. This seems to be due to the fact that there is no trigger. If I change the condition to be a trigger, say state on that entity changes to playing then I can save it. Seems like either the automation builder should change to create a trigger and not a condition or automations should change to fire from conditions.

Posts: 1

Participants: 1

Read full topic

Sensor state changes text color on View

$
0
0

@rajan wrote:

How can I change text color on a View tab when a sensor has reach a critical point?

Posts: 3

Participants: 2

Read full topic

Weather app, to get the precipitation like in buienradar

$
0
0

@Griesi wrote:

Hello all,

is is possible, to use buienradar as well outside of Netherlands or you know a alternative? -> I need it for Germany
I’m looking for a app to get information about the precipitation. best case in “mm/h” and a forecast for 2-3 days.
Background: to automate the irrigation of my garden :slight_smile:

If you have any other idea, I will be glad to read from you.

Posts: 2

Participants: 2

Read full topic

UI Automation - using value_template in condition uses wrong quotes

$
0
0

@Jay_Heavner wrote:

I created a value_template under condition using the UI to check if state was not equal to a value. When the automation is generated in automations.yaml, it wrapped the entire expression in single quotes escaped the single quotes within the statement.

So this…
{{ states('media_player.chromecastaudio_balcony') != 'playing' }}
turns into this…
'{{ states(''media_player.chromecastaudio_balcony'') != ''playing'' }}'

If I try to use double-quotes on the inner expressions, it’s looks fine but it doesn’t work.
'{{ states("media_player.chromecastaudio_balcony") != "playing" }}'

The only fix I could find was manually editing my automations.yaml file after saving and putting double quotes around the outer and using inner quotes.

Posts: 1

Participants: 1

Read full topic

Viewing all 107558 articles
Browse latest View live


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