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

Lifx under .103 and breaking change

$
0
0

@mattlward wrote:

So, I see in the breaking chages section the following:

Lifx : light.lifx_* -> lifx.* (#29136)

I am a long time user, but not an expert by any means. If I am reading this correctly, I will need to update all of my automations to reflect the naming change? So - service: light.lifx_set_state will become - service: lifx_set_state and any of the others will need to change as well.

I wish there was a global editor for yaml files.

Am I on the right track?

Posts: 3

Participants: 2

Read full topic


Google_maps last_seen attribute goes backwards

$
0
0

@pnbruckner wrote:

Has anyone else noticed that the google_maps device_tracker integration sometimes gets updates out of order? I.e., it seems sometimes the last_seen attribute for an update is older than the last_seen attribute from the previous update. I’ve also looked at the latitude and longitude attributes when this happens and it seems sometimes an older update happens a second time (after some other updates with newer last_seen timestamps.)

I have a fix for this that I’m considering submitting as a PR, but I wanted to see if it was happening to anyone else before doing so. I came up with the following as a way to track this happening:

notify:
  - name: google
    platform: file
    filename: google.log
    timestamp: true
automation:
- trigger:
    platform: event
    event_type: state_changed
  condition:
    condition: template
    value_template: >
      {{ trigger.event.data.entity_id.startswith('device_tracker.google_maps')
         and trigger.event.data.new_state is not none
         and trigger.event.data.old_state is not none
         and trigger.event.data.new_state.attributes.last_seen is defined
         and trigger.event.data.old_state.attributes.last_seen is defined
         and trigger.event.data.new_state.attributes.last_seen <
             trigger.event.data.old_state.attributes.last_seen }}
  action:
    service: notify.google
    data_template:
      message: >
        old: {{
          trigger.event.data.old_state.attributes.last_seen
        }} new: {{
          trigger.event.data.new_state.attributes.last_seen
        }} {{ trigger.event.data.new_state.name }}

This will write entries to a file named google.log in your config directory whenever this happens.

I’d be interested to hear if anyone else has noticed this, or if you give the logging technique a try and what your results are.

FWIW, sometimes this doesn’t happen for hours, maybe days, but generally it seems to happen several times a day.

Posts: 2

Participants: 2

Read full topic

MQTT broker problem

$
0
0

@alverman wrote:

Greetings to the forum,
at the moment I have a problem that I can’t explain myself.
I have latest version 192 Hassio.
I installed the MQTT Broker addon.
I have several shellys that work perfectly.
A few days ago I set up a new shelly and added it to HA and it all worked on the desk.
After a few days (today) I installed this shelly, which remained unpowered until today, in the box where I had planned to install it.
The shelly worked after reconfiguring the access to the wifi (probably being out of power it had lost the settings)
However, as soon as it was configured, it worked from the first moment with its application on the iphone.
I set mqtt on the shelly but HA can’t see it.
On the MQTT log page I see all the shellys but not the one just installed.
I tried with mqtt explorer and saw them then I deleted it from mqtt explorer and now I don’t even see them there.
So I tried to remove and reinstall MQTT Broker from HA but the shelly one I don’t really see.
What is it that can give me this problem?

Thanks, Alberto

Posts: 1

Participants: 1

Read full topic

Every device and switch turned on at once

$
0
0

@bphillips09 wrote:

Hi! I’m new to HA, and finally finished getting my system set up.

Today, every single device I have as a “Switch” turned on at once (Insteon and ZWave) at the same time. This turned on all the lights, closed my blinds, rang the doorbell, and even opened my garage doors (it was terrifying for a split second).

Here’s a screenshot of the logbook when it happened.

This was originally going to be a question post until (while posting) I realized what the issue was. I was going to paste the automation looking for advice when I saw it:

- id: '1576192297346'
  alias: Den Keypad Christmas Tree On
  description: ''
  trigger:
  - entity_id: switch.den_keypad_button_d
    from: 'off'
    platform: state
    to: 'on'
  condition: []
  action:
  - data: {}
    service: switch.turn_on

For some reason, creating the automation using the iOS app for HA caused it to duplicate my automation and exclude the action data (the entity_id). This left it with just “switch.turn_on”, which turned on every switch device! Luckily the “mopar” component failed to load so it didn’t start my car :slight_smile:

Anyway, I’ll leave you with this:

  • Always check to make sure you aren’t calling a global “switch.turn_on” or something catastrophic could happen!
  • Maybe there should be an option to disallow turning on all switches/lights at once with a single call?
  • It’s possible that there’s a bug in the iOS app that creates automations twice.

Posts: 3

Participants: 2

Read full topic

ESP8266 ESP-01 trigger relay momentarily on power cycle

$
0
0

@mannigill1 wrote:

Hi,
I currently control my garage shutter with raspi GPO with wiring running to garage controller. I would like to replace it with wireless solution so I bought ESP8266 ESP-01 and flashed it with Tasmota. Everything works fine except upon power cycle ESP8266 it momentarily turns relay on and open garage shutter which is not ideal. How can I disable this trigger on power cycle? It happens immediately on power cycle and I believe before Tasmota loads. Please help
link to device that I am using https://www.ebay.com.au/itm/ESP8266-5V-WiFi-Relay-Module-Smart-Home-Remote-Control-Wireless-WIFI-Module-/332860675085?hash=item4d800ad40d

Posts: 1

Participants: 1

Read full topic

Problem with DuckDNS and (Double Router) PortForwarding

$
0
0

@Alvizq wrote:

Hey guys. I am a new in HA and I am trying to configure DuckDNS on mi HA with no luck.

I have 2 routers. The first, a ZTE F680, and a second, wired to the first one, a Xiaomi Mi Router 4A, with fixed IP 192.168.1.128. All my devices are connected to the Xiaomi Router, including the raspberry with a fixed IP 192.168.2.2.

I followed the step by step guide from “DuckDNS - It’s not just me, It’s you” (https://community.home-assistant.io/t/duckdns-its-not-just-me-its-you) as I thought I would fix my problem, but It didn’t.

Following the steps in the post above:

  1. DuckDNS correctly installed
  2. NGINX correctly installed
  3. Port Forward 443

Here I forwarded external port 443 to 192.168.1.128:443 (Xiaomi Router), and from there, to 192.168.2.2:443 (Raspberry). I am not sure if this is correct or there is a better way to do this (like DMZ?)

F680 Router:
portforwardingf360

Xiaomi Router:

  1. Port Forward 80: I am able to forward this port on F630 router, but I can’t in Xiaomi.
  2. Take note of my external IP: OK
  3. Go to DuckDNS, create a domain, take note of the token, etc… : OK
  4. Change DuckDNS Add-on config and replace “mydomain.duckdns.org” and “token”: OK
  5. Save and start DuckDNS. OK

Log:

  • INFO: Using main config file /data/workdir/config
  • Account already registered!
    [12:03:51] INFO: OK
    MY EXTERNAL IP
    NOCHANGE
  • INFO: Using main config file /data/workdir/config
    Processing MYDOMAIN.duckdns.org
  • Creating new directory /data/letsencrypt/MYDOMAIN.duckdns.org …
  • Signing domains…
  • Generating private key…
  • Generating signing request…
  • Requesting new certificate order from CA…
  • Received 1 authorizations URLs from the CA
  • Handling authorization for MYDOMAIN.duckdns.org
  • 1 pending challenge(s)
  • Deploying challenge tokens…
    OK + Responding to challenge for MYDOMAIN.duckdns.org authorization…
  • Challenge is valid!
  • Cleaning challenge tokens…
    OK + Requesting certificate…
  • Checking certificate…
  • Done!
  • Creating fullchain.pem…
  • Done!
  1. Change confing in NGINX addon, replace the domain
  2. Start NGINX: OK. No errors in the log, at the bottom shows “INFO: Running nginx…”
  3. Goto your configuration.yaml and comment out ANYTHING under http: including the “http:” itself. OK
  4. Reboot routers. OK
  5. Reboot Hass. OK
  6. Goto [https://mydomain.duckdns.org] and login to your HA instance.

Of course step 14 does not work at all.
Also:

  • I checked my ports in www.yougetsignal.com/ and they appear to be closed (or the device not answering. It just time out)
  • I cannot get samba to work either. Maybe this is all related to the same router configuration

This is all driving me crazy…
What am I missing? What am I doing wrong?

Thanks!!

Posts: 7

Participants: 3

Read full topic

Can I force the Updater to start?

$
0
0

@boneheadfraggle wrote:

Background:
I have a sensor that shows any entities that are unavailable to see if there are any that need attention. Like a zigbee lamp that falls out every now and then. However, since I look for all entities with state ‘unavailable’, the binary_sensor.updater also match the first hour before it actually updates itself.

I’d like it to update itself as part of an automation running after HA restart.

I tried to run a service call for homeassistant.update_entity, but that made no difference.

Suggestions?

Posts: 1

Participants: 1

Read full topic

Issue with Plug Fibaro switch entity

$
0
0

@Anodrim wrote:

Hi!

I just add a Plug Fibaro in my installation. Everything works fine except the switch entity which isn’t the real state.

For example right now, IRL it’s OFF but the switch is ON in HA. If I turn it OFF, it goes ON few second after (automatically), without doing anything IRL. I can turn it on IRL by switching the toogle ON/OFF in HA many times.

I can’t use the service switch.toogle because of this bug, but switch.turn_on/off works fine. Already tried to stop/start the network, refresh node and entity.

Posts: 12

Participants: 3

Read full topic


New ZWave Climate Entities

Hass with tls: android app not working

$
0
0

@prankousky wrote:

Hi everybody,

I just changed from http to https, following this tutorial. When I open the https page in Firefox, it works; I have to accept the warning, then it will display the page.

However, when I use the Android app, it does not work. It will scan the network for Home Assistant, then not find anything. Manually entered https://hass:8123, clicked next. Then the entire app displays a white page without any content.

It doesn’t matter how long I wait, it will not change. When I exit the app and start it again, it will display the initial dialog (scanning for Home Assistant, not finding it), so it does not even save the IP address. It worked a few minutes ago with http, so I don’t understand why it will not work with https…

Anybody got a tip on how I can fix this? Thank you for your ideas :slight_smile:

Posts: 1

Participants: 1

Read full topic

Storing and restoring user settings?

$
0
0

@derandiunddasbo wrote:

Some weeks ago I already asked a similar question, but got no response. Maybe because it was asked too specific, thus I try to rephrase this in a more general way.

I’m using a bunch of input entities for heating control (temperature and operation mode profiles for all rooms, timers, etc.). Now I’d like to store the current states of these entities as “heating scenes” and restore them if needed. I.e. a scene for regular days, one for vacation, one for days I’m having visitors, and so on.

My question: Is there a preferred way in HA to permanently store and restore user settings?

Posts: 2

Participants: 2

Read full topic

Preset modes for mqtt based hvac

$
0
0

@chris_ka wrote:

Hi, in 0.96 there was a redesign of the climate integration introducing preset modes.

I connect my zwave based hvac via zwave2mqtt and manual integration based on


In this document there is no mentioning of self defined preset modes.

My configuration looks as follows:

climate:
  - platform: mqtt
    name: "Thermostat Fabian"
    unique_id: "thermostat_fabian"    
    qos: 0
    modes:
      - heat
      - cool
      - 'off'
    mode_state_topic: "zwave2mqtt/23/64/1/0" 
    mode_state_template: >
      {% set values = {'"Off"':'off','"Heat"':'heat', '"Heat Eco"':'cool'} %}
      {{ values[value] if value in values.keys() else 'off' }}
    mode_command_topic: "zwave2mqtt/spirit/23/64/1/0/set"
    current_temperature_topic: "zwave2mqtt/23/49/1/1"
    min_temp: 11
    max_temp: 25
    temp_step: 0.5
    temperature_high_state_topic: "zwave2mqtt/23/67/1/1"
    temperature_high_command_topic: "zwave2mqtt/23/67/1/1/set"    
    temperature_low_state_topic: "zwave2mqtt/23/67/1/11"
    temperature_low_command_topic: "zwave2mqtt/23/67/1/11/set"

I would like to define preset modes “Off”,“Heat”, “Heat Eco”, “Full Power” and assign
temperature_high to “Heat” and “Full Power” and
temperature_low to “Heat Eco”.

can I define the preset modes accourding to the revised climate integration introduced in 0.96. It looks like the documentation is still on the older version
Any help is greatly appreciated

Posts: 1

Participants: 1

Read full topic

Help with escape characters in template

$
0
0

@Juggler wrote:

I’m trying to write an action with an event template. Without the template, the event looks like:

- event: homeassistantCube
  event_data:
    notifications: [{title: 'Goodnight security', severity: 'warning', options: {detail: 'All is well... sleep tight', dismissable: 'true'}}]

I would like to add the following into the above as a random integer: {{ range(1,99999) | random }}}, so the event would look something like:

- event: homeassistantCube
  event_data_template:
    notifications: [{title: 'Goodnight security', severity: 'warning', options: {detail: 'All is well... sleep tight', dismissable: 'true', serverId: {{ range(1,99999) | random }} }}]

I know the above is incorrect, but I cannot figure how to escape it properly. Can any Jinja ninjas help me out?

J.

Posts: 2

Participants: 2

Read full topic

Gauge card with reverse levels?

$
0
0

@RobFromLI wrote:

I am using the gauge card for several sensor values in my house and have the red/yellow/green defined. However, for my freezer, the order of red/yellow/green needs to be reversed, since a higher temperature is bad and lower is good. Is there any way to do this? I tried reversing max/min but that doesn’t appear to work.

Posts: 4

Participants: 2

Read full topic

Scrape sensor SMHI

$
0
0

@etxttul wrote:

Hi,

I need help with a scrape sensor. At first I thought it would be quite simple, but it is not, at least not to me who haven’t worked with web pages.

Maybe some Swedish person already did this and can help. I just want to scrape one simple piece of information out of a the Swedish Meteorological hydrological institute (SMHI) home page. What I want to scrape is the regional warnings (storms and floods and such stuff),(weather is my thing, I will have more questions about this later).

This is the link to the page I’m trying to scrape.
https://www.smhi.se/q/Stockholm/2673730

This is the info I’m trying to scrape (in the red oval), right now “inga varningar” (no warnings).

I have been trying to use the built in HA scraper to do this. I started by just doing inspect in the browser, when this didn’t work I installed the scraper add-on to chrome.
The scraper add-on give me the following to scrape, “wpt-keps-warning-p” and in chrome it catches the right info. I wanted to learn so I have been trying a lot of things, on and off for weeks, but failed.

Here is the inspect for warnings

Inga varningar utfärdade.

If you click the > you will get to another page that discplays the same thing. Maybe it is easier there?

Thanks for your help in advance.

BR
Tobe

Posts: 3

Participants: 2

Read full topic


Yale YRD226 Zigbee - Extended Sensors

$
0
0

@g3rman42 wrote:

I have a couple of Yale YRD226 door locks with Zigbee modules.
These have been working well and were previously paired to an Icontrol home automation system via Zigbee. I have now switched the setup over to HA and I have successfully paired and used the locks.

On the Icontrol system I would get notified if there was a jammed locked as well as how the lock was opened (for example manually at the lock or by user code). So I know that the Yale lock has the capabilities to send these status codes via Zigbee.

However when I look at my devices in HA I can only see the lock and the battery sensor and all the research I have done has only turned up Z-Wave examples. Does anyone have more info on how to monitor these extended status codes via Zigbee?

Posts: 1

Participants: 1

Read full topic

Control Sonos Equalizer via Python script

$
0
0

@drimpart wrote:

I have a python script that changes the equalizer settings for one of my Sonos boxes, like Bass volume, Loudness and Treble - it uses the SoCo library, that so far as I know, also Home Assistant itself uses to control Sonos - but it’s somehow not working, I get this error in the Log:

ERROR (MainThread) [homeassistant.components.shell_command] Error running command: `python3 /config/python_scripts/kitchen_silent_mode_on.py`, return code: 1
NoneType: None

This is the Python Script, that works fine on my Mac (after pip install soco):

from soco import SoCo

sonos = SoCo("192.168.178.46")

sonos.bass = -5
sonos.treble = 10
sonos.loudness = False

and that is in my configuration.yaml:

shell_command:
kitchen_silent_mode_on: 'python3 /config/python_scripts/kitchen_silent_mode_on.py'

Does anybody know why it is not working?

Posts: 1

Participants: 1

Read full topic

Strange entities in my Fibaro Zwave Dimmer2 (FGD212 Dimmer2)

$
0
0

@daggy72 wrote:

in my ZWave Network I have 2 of the same Fibaro FGD212 Dimmers installed. They both work correctly It is just that I found some strange entities in one of them (see attached screenshot). A velocity- and formaldehyde-sensor is not what I would expect in a Dimmer :wink:

How can I reset/correct this?!

image

Posts: 1

Participants: 1

Read full topic

Clean hassio install but not secure duckdns adress

$
0
0

@bengt wrote:

I just got my 4. clean install of hassio on my RP3 today. The first add-on I install is Duckdns.
I install it as described in add-on and change only the token and url (using the same token and sub domain I have used before (from duckdns.org page)).

Config in add-on:

{
  "lets_encrypt": {
    "accept_terms": false,
    "certfile": "fullchain.pem",
    "keyfile": "privkey.pem"
  },
  "token": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "domains": [
    "my-domain.duckdns.org"
  ],
  "seconds": 300
}

I’ve tried “accept_terms”: true …and false

Log looks fine
ha2

the page does not appear as secure

Although there is nothing to say that you need to configure configuration.yaml, I have tried to add:

http:
  base_url: my-domain.duckdns.org:8123  
  ssl_certificate: /ssl/fullchain.pem
  ssl_key: /ssl/privkey.pem

both with and without https:// in base_url.

Add-on log then says:

# INFO: Using main config file /data/workdir/config
Processing *my-domain*.duckdns.org
 + Checking domain name(s) of existing cert... unchanged.
 + Checking expire date of existing cert...
 + Valid till Mar 12 11:36:52 2020 GMT Certificate will not expire
(Longer than 30 days). Skipping renew!

If I restart Hassio with these lines in configuration.yaml, it never starts up again and I have to reinstall.
What is happening here. Why is not the page secure?

Posts: 1

Participants: 1

Read full topic

How can I get notify.mobile_app to show temperature from darksky?

$
0
0

@geeked wrote:

Hi there!

I want to add the temperature to a push notification. I have the app push me a message every morning when my porch light shuts off at sunrise. I’d like it to also tell me what the temperature is outside in the same message. What do I need to include in the message under service data?

Thank you

Posts: 3

Participants: 2

Read full topic

Viewing all 109599 articles
Browse latest View live


Latest Images

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