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

Unable to log through local ip

$
0
0

Hello everyone,
I just managed to setup DuckDNS and make it work. I can now log through https://mydomain.duckdns.org:8123 both on my iOS App and web browser on my pc.
If i try to log through my local ip (http://192.168.1.6:8123) the browser show a server error, while if i try to log through https://192.168.1.6:8123 the browser says it’s not a secure website (and it should be okay) and i can reach the login interface, but as soon as i login i get the HA logo and “Retry”.
Same on the app: even if i am connected to my wifi it always logs via the external url.
How can i solve this?

EDIT: It seems that (on the same PC) if i go to the https:// i can login, but on Safari i can’t

2 posts - 2 participants

Read full topic


What am I doing wrong in this automation?

$
0
0

I’m trying to create an automation for my RM Mini IR Remote actions. I want to use a boolean so I can use a slider to toggle things off instead of using the 2 seperate power buttons in my lovelace interface.

This is the automation i’m trying to use:

- id: '1598556962367'
  alias: Woonkamer TV Aan Uit
  description: ''
  trigger:  
  - entity_id: input_boolean.televisie_woonkamer
    platform: state
  condition: []
  action:
  - service: broadlink.send
  data:
    host: 192.168.1.236
    packet:
    - JgCMAJaSEzcTNhU1ExIUERQRFBAVEBU1EzYVNRMSFBEUERQQFRAVNRQ1FTUVEBQRFBEUEBUQFRAVEBQRFDUVNRU1FDUVNRUABgCUlRM2FDYTNxITERMSExITEhMSOBI3FDYTEhEUERMSExITEjgSNxM3EhMRFBETEhMSExITEhMRFBE4EzcSOBI3EjgSAA0FAAAAAAAAAAAAAAAA

I can’t seem to recreate the error but it was something along the lines of the ‘data:’ not allowed? Am i not formatting it correctly? I’ve tried the suggestions I found on several threads but can’t find a good example on how to format my action. I’m a big automation noob so all suggestions are welcome :sweat_smile:

2 posts - 2 participants

Read full topic

Nut stop working after update 0.21 in raspberry

$
0
0

Hi guys, I’m running Home assistant with HassOS using a raspberry3b+ . I’m using Nut for monitoring my UPS but after the last update it stop working.
This is the log:

Error relocating /usr/sbin/upsdrvctl: __select_time64: symbol not found
Error relocating /usr/sbin/upsdrvctl: __difftime64: symbol not found
Error relocating /usr/sbin/upsdrvctl: __gettimeofday_time64: symbol not found
Error relocating /usr/sbin/upsdrvctl: __stat_time64: symbol not found
[cont-init.d] nut.sh: exited 127.
[cont-finish.d] executing container finish scripts…
[cont-finish.d] 99-message.sh: executing…

            Oops! Something went wrong.

We are so sorry, but something went terribly wrong when
starting or running this add-on.

Be sure to check the log above, line by line, for hints.

[cont-finish.d] 99-message.sh: exited 0.
[cont-finish.d] done.
*

It’s possible to rollback to version 0.20 ?

Thanks,
Emanuele.

1 post - 1 participant

Read full topic

State update nor working by ShellyforHASS and Shelly APP

$
0
0

I have just installing my new little shellies but not working very fine.

Shelly Dimmer 2
I have a normal togle switch UP and DOWN
On the app Button type is Edge mode
Not connected to Cloud

When i press on Switch UP light goes UP but on the app it dont update the state. It says OFF. i must then on the app click twice to turn off the light.

This is also when the Light is turned ON and i wlll turn off the light via Switch DOWN.

Wherever the state wil not be updated.

  • Installed ShellyForHASS
    It found the shelly and added as integration, but i can’t turn on turn off via hass. the state is constant on OFF state on HASS.

How can i solve my problem?

Is MQTT maybe o solution but which MQTT commands code should i to use for the shelly’s ?

Should Tasmota maybe solve my problem and can i then also use Regular Switch button also to turn on/off by every click

1 post - 1 participant

Read full topic

Pi4 not booting with Aeotec Z-Wave (with hub) and ConBee

$
0
0

I have the well-known Pi 4 Aeotec Z-Wave issue. However, with an unpowered USB 2 (and even with a powered USB 3) hub it used to work fine. Now, I have added the ConBee USB stick to my configuration which by itself works fine. But when the Aeotec stick is plugged in as well, the Pi4 doesn’t boot. Once I unplug the Aeotec, the boot process continues just fine.

I thought it may have something with conflicting ports. I have configured the Conbee with

/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2220009-if00

and the Aeotec with

/dev/serial/by-id/usb-0658_0200-if00

thinking that this may clear any confusion about

/dev/ttyACM0

which may go the one or the other stick at boot.

Has somebody experienced the same issue and was able to solve it?

1 post - 1 participant

Read full topic

Automations.yaml passed code validation but won't reload

$
0
0

This is my automations.yaml file. It passes the internal validation (green check) and I ran it through an external yaml validitor and it passes. But when I try to reload the automations.yaml file it throws an error that is too generic to be helpful, what’s wrong with this code?

NB: I think most all of these are working and I have restarted HA. I’m running on Pi4.

Also, you will see I am using both life360 and internal HA for GEO, Im testing both for accuracy, so that’s an expected difference in the code.

- id: '1595725566658'
  alias: Open the garage when I get home
  description: ''
  trigger:
  - entity_id: device_tracker.life360_dad
    platform: state
    to: home
  condition: []
  action:
  - device_id: c03533e8b39b4469a36ea76716e83382
    domain: cover
    entity_id: cover.main_garage_door_opener
    type: open
  mode: single
- id: '1595725613073'
  alias: Close the garage when I leave
  description: ''
  trigger:
  - entity_id: device_tracker.life360_dad
    event: leave
    platform: state
    to: not home
  condition: []
  action:
  - device_id: c03533e8b39b4469a36ea76716e83382
    domain: cover
    entity_id: cover.main_garage_door_opener
    type: close
  mode: single
- id: '8234324837875'
  alias: Turn off bedroom mini split in the morning
  description: turn off bedroom mini split in the morning
  trigger:
  - at: '08:00:00'
    platform: time
  action:
  - data:
      command:
      - Power Off
      device: 70356291
      entity_id: remote.master_bedroom_2
    service: remote.send_command
  mode: single
- id: '4598345843759'
  alias: Turn on bedroom mini split in the afternoon
  description: turn on bedroom mini split in the afternoon
  trigger:
  - at: '16:00:00'
    platform: time
  action:
  - data:
      command:
      - Power On
      device: 70356291
      entity_id: remote.master_bedroom_2
    service: remote.send_command
  mode: single
- id: '1596799681405'
  alias: unlock the door when i get home
  description: ''
  trigger:
  - entity_id: device_tracker.life360_dad
    platform: state
    to: home
  condition: []
  action:
  - device_id: 7a9314d24d3e401384799c8ac650c9e7
    domain: lock
    entity_id: lock.front_door
    type: unlock
  mode: single
- id: '94837387648'
  alias: lock the door when i leave
  description: ''
  trigger:
  - event: leave
    platform: geo_location
    source: person.dad
    zone: zone.home
  condition: []
  action:
  - device_id: 7a9314d24d3e401384799c8ac650c9e7
    domain: lock
    entity_id: lock.front_door
    type: lock
  mode: single
- id: '1597656333563'
  alias: Lock the door at 9pm
  description: ''
  trigger:
  - at: '21:00:00'
    platform: time
  condition: []
  action:
  - device_id: 7a9314d24d3e401384799c8ac650c9e7
    domain: lock
    entity_id: lock.front_door
    type: lock
  mode: single
- id: '857629276847'
  alias: Turn on office mini split in the morning
  description: turn on office mini split in the morning
  trigger:
  - at: '08:00:00'
    platform: time
  action:
  - data:
      command:
      - Power On
      device: 71009940
      entity_id: remote.office_hub
    service: remote.send_command
  mode: single
- id: '182849447'
  alias: Turn off office mini split in the afternoon
  description: turn off office mini split in the afternoon
  trigger:
  - at: '18:00:00'
    platform: time
  action:
  - data:
      command:
      - Power Off
      device: 71009940
      entity_id: remote.office_hub
    service: remote.send_command
  mode: single

Deeply appreciate any help. I can’t see where the error is that would cause HA to not be able to reload this.

1 post - 1 participant

Read full topic

Unexpected cover closure/open

$
0
0

Hi all,

I hope this is the right category for this request. I configured some shelly 2.5 for managing my cover. All is working fine the only strange think and I can’t explain is that sometime I found the cover open/close even if I didn’t change the status.
For example this morning I found the cover of my kitchen complete open evenif. Form the gui I see a change of status at 04.38 AM.

Do you have any idea of what can cause this issue?

thanks,

1 post - 1 participant

Read full topic

Is the Thehackbox.org website down?

$
0
0

Guys
Trying to use Tasmotizer but unable to connect to the latest firmware?

Thanks

1 post - 1 participant

Read full topic


Moving database to usb stick or usb harddrive device

$
0
0

Can anyone help me to a direction where is described how to move the database to an external device for example an usb stick or usb harddrive? I’m running HASS on a Raspberry Pi4b and are not familiar with Linux so a detailed description is preferred.

1 post - 1 participant

Read full topic

Terminal & SSH Addon Problem

$
0
0

Trying to use ‘ha authentication reset’ to change a user’s password on Terminal & SSH community addon. But it always gives this:

$ ha authentication reset --username "user" --password "newpassword"
 
ERRO[0000] Unexpected server response                   
this command is limited due to security reasons, and will only work on some locations. 
For example, the Operating System terminal.
Unexpected server response

Since i am using hassio (Docker) i simply have no idea to ssh into docker homeassistant container. Is there a way to disable this limitation on SSH addon?

1 post - 1 participant

Read full topic

Configure script for esp8266

$
0
0

Hi!

I just migrate from domoticz to hassio and I’m a little lost for two esp8266 I made with dzvents script and I don’t know what is the best method to add them to my config…
There are two “finger” controled by esp8266. basically there are switches… I must do an action to on and another on off (with delay etc…)
Here is my dzvents script

– script par Rayn du discord les “frères poulains”

return {
active = true, – set to false to disable this script
on = {
devices = {
‘ProjecteurS’, – nom de l’interrupteur du servo
},

},

execute = function(domoticz, device)

    function appui_servo(ip, gpio)
        url = "http://"..ip.."/control?cmd=Servo,1,"..gpio..","
        domoticz.openURL(url..'60')     -- va à la position 60
        print("--> URL : "..url..'60')
        domoticz.openURL(url..'0').afterSec(1)   -- retourne en position initiale apres pause de 2 s
    end

    function appui_servo2(ip, gpio)
        url = "http://"..ip.."/control?cmd=Servo,1,"..gpio..","
        domoticz.openURL(url..'60')     -- va à la position 60
        print("--> URL : "..url..'60')
        domoticz.openURL(url..'0').afterSec(1) -- retourne en position initiale apres pause de 2 s

    end
    
    ip = '192.168.1.6'     -- ip du node mcu
    gpio = 4                        -- branché sur D2 ou GPIO 4

    if device.state == 'On' then
        appui_servo(ip, gpio)   -- action on
    else
        appui_servo2(ip, gpio)   -- action off
    end

– device.switchOff().afterMin(30).silent() – eteinds apres 30 minutes SANS delcencher d’action
end
}

1 post - 1 participant

Read full topic

InfluxDB stopped working

$
0
0

Hello,

i’m running HA 0.114.4 with InfluxDB 3.75. My DB stops running. Everytime when i try to start it, the start icon flash red and it’s not running. Has someone an idea what could be the problem?

Thanks for help

1 post - 1 participant

Read full topic

Is it possible? Include the script name in a notify message

$
0
0

Been round the boards for a couple of days with this one but can’t figure it out.

Short question: is it possible to include the script name in the body of a notify action.

Context: I have a series of WiFi plugs which jump on/off the network (another problem to sort out another day) so have been creating more robust scripts triggered by automation’s to handle these. Basically, if they don’t turn on at first attempt I’m trying again (and again) until finally giving up. When I give up, I’m pinging a message to my phone with the state of the devices so I can go and turn the thing off and back on (yes, I know I need better devices!).

So two things I’m sure people will point out - is this overkill, yes probably but important for me to be able to get to the device and sort it out before the family complains and block any further evolution of my master plan!

Secondly, why not just type the script name in Mike? Well yes, that’s obvious but this has now become my nemesis and would love if someone could crack it for, that way when I replicate this I simply paste it in with no edits.

The script is below for interest (or comment!) and the group in question contains 5 switches (and SCRIPT NAME is where I put the name of the script that’s running).

Thanks in advance guys and gals!

lights_kitchen_on:
  alias: Lights - Kitchen - On
  icon: hass:led-strip-variant
  mode: single
  sequence:
  - data: {}
    entity_id: group.kitchen
    service: homeassistant.turn_on
  - repeat:
      sequence:
      - delay: '20'
      - data: {}
        entity_id: group.kitchen
        service: homeassistant.turn_on
      while:
      - condition: template
        value_template: '{{ states|selectattr(''entity_id'',''in'',state_attr(''group.kitchen'',''entity_id''))
          | rejectattr(''state'',''eq'',''on'')|list|count > 0 }}'
      - condition: template
        value_template: '{{ repeat.index <= 15 }}'
  - condition: template
    value_template: '{{ states|selectattr(''entity_id'',''in'',state_attr(''group.kitchen'',''entity_id''))
      | rejectattr(''state'',''eq'',''on'')|list|count > 0 }}'
  - data:
      message: '{%- set ns = namespace(message = ''**SCRIPT NAME** failed to finish
        successfully, devices states are:\n'') -%} {%- for item in states.group.kitchen.attributes.entity_id
        -%} {%- set ns.message = ns.message + '' - '' + item + '': '' + states(item)
        + ''\n'' -%} {%- endfor -%} {{ ns.message }}'
    service: notify.mobile_app_mike_wood_iphonex

1 post - 1 participant

Read full topic

Tie entity togheter

$
0
0

I have a switch Input entity on/off and a relay entity.

I want something as simple that the relay always follow the state of the switch input. Currently i need to creat two automation rules for this, one that turn on the relay and one rule that turn it off, depending on the switch inpur entity.

I think this is just a hassel, how can i creat something simpler then this? I need one script/automation that take care of voth on and off switching. How can this be done?

2 posts - 2 participants

Read full topic

Mqtt sensor, can't get it to work

$
0
0

Hi

I have a sonoff rf bridge, flashed with espurna.
It captures 433mhz and publishes it to mqtt, i.e. “[963760] [MQTT] Sending RFBRIDGE1/rfin => C001015D18006EFDC2 (PID 1)”
I can subscribe to the topic from the MQTT listener and it receives the codes from the rfbridge.

Next is setting up a sensor listening to the topic

  • platform: mqtt
    name: small_remote
    state_topic: “RFBRIDGE1/rfin”

Nothing happens to the sensor, I tried making it a switch, binary_sensor by looking at the payload, but nothing.

Regardless of the source (in this case anm rfbridge) why does the sensor stay unavailable and not change state to the payload?
I have a 16 channel rf remote coming in so the 8 switches in the rfbridge won’t do :slight_smile:

2 posts - 2 participants

Read full topic


No space left - Addon is gone - HOWTO FIX?

$
0
0

Hi guys

I have been using MotionEye addon to record camera feeds.

But now there is no space left on my hassio virtual server on proxmox.

The server is running and home-assistant is running, but there is no hassio.

I tried to backup config files, but no luck, logs will no update with new error if any!.

I got backu for 1 week ago that i am running on now!

I tried goto cli and delete the share folder, but with no luck.

Do you guys have an idea how i can delete files.

I cant use any addon, so what ever is possible please help :slight_smile:

1 post - 1 participant

Read full topic

Customizations not loaded

$
0
0

I have the following config:

configuration.yaml:

homeassistant:
  # Load packages
  packages: !include_dir_named integrations

In integrations/homeassistant.yaml:

homeassistant:

  # Lets me customize individual entities
  customize: !include_dir_merge_named ../customizations/entities

  # Lets me custimize all entities in a domain
  customize_domain: !include_dir_merge_named ../customizations/domains

If I now add the following two settings to my integrations/homeassistant.yaml the customizations are not loaded and applied:

homeassistant:

  # Lets me customize individual entities
  customize: !include_dir_merge_named ../customizations/entities

  # Lets me custimize all entities in a domain
  customize_domain: !include_dir_merge_named ../customizations/domains

  # Enable Multi-factor Authentication (MFA)
  auth_mfa_modules:
    - type: totp

  # Trusted Networks
  auth_providers:
    - type: trusted_networks
      trusted_networks:
        - xxx.xxx.xx.xxx/24

If I remove the auth_mfa_modules and auth_providers settings from the yaml file, the customizations works fine!

Any idea what’s the problem?

Thanks and regards,
Daniel.

1 post - 1 participant

Read full topic

Konnected.io - no binary_sensor detected

$
0
0

Hi,
Few days ago I have connected a NodeMcu with the Konnected.io firmware
I have read a lot of posta, but they are old and they speak about the old kind of integration.
I’ve not used any line in the configuration.yaml
I’ve simply used the Integration
(It’s possible to access my HA from remote via https/duckdns)
HA seems not to be able to read the status of the binary_sensors
I can correctly read their status calling directly Konnected board ip page
http://192.168.1.xxx:13651/
In HA I have tried to overcome the Url without results
what can I try to modify?

thank you

1 post - 1 participant

Read full topic

Hey i require help with how to implement a python code that require a win32com library installed into home assistant

$
0
0

hey i wrote this code that can tell me what display im using and i want that when i use certain display the lights will go on and when i use the other one lights will go off my problem is that i cant install the library to the add on and im having trouble to understand how to connect visual studio code on my desktop to home assistant and i tried to find solutions in google but didnt find any im kinda newbie in programming and home assistant

this is the code:

import win32api
monitors = win32api.EnumDisplayMonitors()
win32api.GetMonitorInfo(monitors[0][0])
info = win32api.GetMonitorInfo(monitors[0][0])


if info == {'Monitor': (0, 0, 1707, 960),
'Work': (0, 0, 1707,960),
'Flags': 1,
'Device': '\\\\.\\DISPLAY1'}:
    print("DISPLAY 1 on")
else:
    print("DISPLAY 4 on")

thanks in advance.

1 post - 1 participant

Read full topic

No One is At Home Trigger with Zones

$
0
0

It doesn’t look like HA lets you trigger with AND statements, so I’m running into a bit of a challenge with this one. I’m also a bit of a newbie to HA so I may be overlooking something obvious.

Basically I want the alarm to set automatically if there is no presence in the home and the alarm is not armed. If I could use an AND statement it would be easy, but no joy there. This is what I’m looking to do.

If my phone and my wife’s phone leave zone ‘Home’ and the alarm is not Armed_Away, set the alarm to Alrmed_Away.

Any ideas?

1 post - 1 participant

Read full topic

Viewing all 108365 articles
Browse latest View live


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