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

Remote shutdown script for NetGear ReadyNas

$
0
0

@jtnn60 wrote:

I want to start and stop my Netgear ReadNAS on demand from Home Assistant which is running in Docker on a Raspberry Pi 4.

Does anyone have an example of a remote shutdown script for a NetGear ReadyNas running the latest firmware v6.10.3? Older, simple CURL scripts, no longer work due to a change in the security model. See https://community.netgear.com/t5/Using-your-ReadyNAS-in-Business/Curl-does-not-work-any-more-since-upgrade-to-6-9-3-on-RN316/m-p/1535788#M143769

A link to a working script would be appreciated!

Posts: 2

Participants: 2

Read full topic


Input_boolean not saving state on restart

$
0
0

@HA_fanatic wrote:

I use two input_boolean to trigger when my SO and I are going to go to sleep this way the house mode can go from home > someone asleep > night mode.

I use Appdaemon to trigger the input_select for the house mode which in turn triggers the respective YAML automation in HA.

I experimented with a restart to see if the documentation was write that on restart an input_boolean is suppose to maintain the last state if the initial flag is not set on the config file.

How can I fix this.

RESTORE STATE

If you set a valid value for  `initial`  this integration will start with state set to that value. Otherwise, it will restore the state it had prior to Home Assistant stopping.

Posts: 3

Participants: 2

Read full topic

Xiaomi aqara gateway - All ports open - but cannot be discovered

$
0
0

@fliptoback wrote:

Hi, I have a xiaomi aqara gateway and a bunch of xiaomi devices which I wanted to use in Home Assistant.

This is my configuration yaml entries:

xiaomi_aqara:
  discovery_retry: 10
  gateways:
    - key: redacted

Home Assistant’s logs:

Setup failed for xiaomi_aqara: Integration failed to initialize.
7:59:06 PM – setup.py (ERROR)

No gateway discovered
7:59:06 PM – xiaomi_aqara (ERROR)

Setup of xiaomi_aqara is taking over 10 seconds.
7:56:46 PM – __main__.py (WARNING)

I have tried the discovery_retry up to 30s. same no go.

I then thought I have some ports blocked.

So nmap shows this:

root@mypc:~# nmap -sU -Pn 192.168.3.100 -p 9898,4321,54321,5353

Starting Nmap 6.47 ( http://nmap.org ) at 2020-03-17 20:33 AWST
Unable to find nmap-services!  Resorting to /etc/services
Cannot find nmap-payloads. UDP payloads are disabled.
Nmap scan report for 192.168.3.100
Host is up (0.0028s latency).
PORT      STATE         SERVICE
4321/udp  open|filtered unknown
5353/udp  open|filtered mdns
9898/udp  open          unknown
54321/udp open|filtered unknown

So it seems all the important ports are opened but I am still having issues.

I must be missing something? I have searched everywhere but i could not find a working solution.

Help much appreciated.

Thanks

Posts: 1

Participants: 1

Read full topic

Serial integration is unstable

$
0
0

@clau-bucur wrote:

Hello,

I have a serial integration where I read some DHT22 sensors from an Arduino Nano.
My config:

sensor:
  - platform: serial
    name: pod_nano
    serial_port: /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0

  - platform: template
    sensors:
      hol_temperatura:
        friendly_name: Temperatura Hol
        unit_of_measurement: "°C"
        value_template: '{{states.sensor.pod_nano.attributes["hol_temperatura"] | round(1)}}'
      hol_umiditate:
        friendly_name: Umiditate Hol
        unit_of_measurement: "%"
        value_template: '{{states.sensor.pod_nano.attributes["hol_umiditate"] | round(0)}}'

The sensors run fine for a while, but it could be that after a day or so, they don’t get any more data from the serial.
Checking the serial with picocom for example, shows that the Arduino is still sending data.
But it looks like Home Assistant lost the link with the serial device.

The same happens if I unplug the device, and plug it back.
The link is lost and I need to restart Home Assistant in order to get it back.

Is there a way for the serial integration to recover from a broken connection to the device?

Thanks!

Posts: 4

Participants: 2

Read full topic

Input number automation oddity

$
0
0

@mvsjes2 wrote:

I’m setting up a couple of input_numbers, one to set the time for a fan, and one to turn on a humidifier for a portion of the fan time. In other words, the humidifier time would always be <= the fan time. I’ve set up automation so that when I place the slider for the humidifier above the fan time, the fan time will be increased to match, and when the fan time is set below the humidifier time, the humidifier time is decreased to match. This is obviously to prevent the mister from running when the fan is off.

This works great, except when it doesn’t. It only seems to work about 80% of the time. Other times the automation doesn’t look like it kicks in. No errors in the logs.

I’m very new (1 week) to home assistant and am a bit stumped on how to track this down.

Does anyone have any pointers on how I can debug this? I’ve read in different places that debugging automation is “difficult”, and when you have something that works as you think it should, but intermittently fails, it makes it even more of a head-scratcher.

- alias: 'Synch RH time and fan time'
  trigger:
    platform: state
    entity_id: input_number.fr_humidifier_time
  condition:
    condition: template
    value_template: '{{ states("input_number.fr_humidifier_time") > states("input_number.fr_fan_time") }}'
  action:
    service: input_number.set_value
    data_template:
      entity_id: input_number.fr_fan_time
      value: "{{ states('input_number.fr_humidifier_time') | int(0) }}"

- alias: 'Synch fan time and RH time'
  trigger:
    platform: state
    entity_id: input_number.fr_fan_time
  condition:
    condition: template
    value_template: '{{ states("input_number.fr_humidifier_time") > states("input_number.fr_fan_time") }}'
  action:
    service: input_number.set_value
    data_template:
      entity_id: input_number.fr_humidifier_time
      value: "{{ states('input_number.fr_fan_time') | int(0) }}"
input_number:
  fr_fan_time:
    name: Fan Time
    initial: 70
    min: 0
    max: 120
    step: 10
    unit_of_measurement: Sec
    icon: mdi:timer
  fr_humidifier_time:
    name: RH Time
    initial: 10
    min: 0
    max: 120
    step: 5
    unit_of_measurement: Sec
    icon: mdi:timer

Home Assistant 0.103.6 running straight on ubuntu 18.04 (no docker, no hass.io), python 3.6.9, aarch64 odroid c2.

Thanks!

Posts: 18

Participants: 4

Read full topic

HVAC_modes template return ever same value

$
0
0

@alverman wrote:

Good morning,
why this code always returns the same value to me ‘Automatic’
Where am I wrong?
Thanks, Alberto

Cattura

# usato in floorplan
  - platform: template
    sensors:
      hvacmode_p1:
        friendly_name: Modo riscaldamento p1
        value_template: >-
          {% if is_state_attr('climate.house_thermostat_1', 'hvac_modes', 'off') %}
            Spento
          {% if is_state_attr('climate.house_thermostat_1', 'hvac_modes', 'heat') %}
            Manuale
          {% if is_state_attr('climate.house_thermostat_1', 'hvac_modes', 'auto') %}
            Automatico
          {% endif %}

Posts: 6

Participants: 3

Read full topic

Aqara Sensor shows only Temperature in Homekit and not Humidity

$
0
0

@christian_by wrote:

In the Home Assistant at Entities I can find my Aqara Sensors which has one sensor for temperature and one for humidity. In my Home App on iOS (Homekit) I can only see the temperature. Is there anything I have to configurate to see both in iOS?

Posts: 3

Participants: 2

Read full topic

SMS and a recommended modem


Alarm.com integration

$
0
0

@bkr1969 wrote:

Not sure where my post from yesterday went but I updated hassio to get my Ring camera to work and now my alarm.com panel is not available. Nothing in the docs about new setup. Anyone have any idea?

Posts: 1

Participants: 1

Read full topic

Material Design Icon Size

$
0
0

@gdc wrote:

How does one increase the size a material design Icon in the customize file?
Cheers John

Posts: 5

Participants: 2

Read full topic

Google TTS with Ubiquity on different networks

$
0
0

@mufidsyed wrote:

Hi. I have setup Home Assistant with it being able to discover all the Google Hubs that i have available and was successfully able to bring them into my frontend. I get the box for tts but it does not work all i get is that hub coming active and no sound playing indefinitely.

I have a unifi system setup with home assistant on my primary network and all the google hubs on a vlan.

The below is from my config.yaml

tts:
   - platform: google_translate
     base_url: http://192.168.1.26:8123
     service_name: google_say
     cache: true

are there any specific ports that need to be opened. I have checked on this as much as possible but cannot find the right solution.

Posts: 1

Participants: 1

Read full topic

Received invalid command: device automation/trigger/list

$
0
0

@indigo78 wrote:

The complete error is:
Received invalid command: device_automation/trigger/list
9:30:13 PM – websocket_api (ERROR) - message first occurred at Invalid Date and shows up 11 times

Google hasn’t been kind in finding an answer. I noticed an issue when I tried to create an automation and selected a trigger device. There were no trigger options on the device only ‘Unknown trigger’. I also had issues with automations.yaml and it seemed to become corrupt - wouldn’t open through file editor/nano/samba so I deleted and recreated a blank file.

Would love to not have to start over but it wouldn’t be the end of the world.

Thanks in advance for any assistance and/or telling me where else I should be looking.

System Health

arch armv7l
dev false
docker true
hassio true
os_name Linux
os_version 4.19.106-v7l
python_version 3.7.6
timezone America/Los_Angeles
version 0.107.0b6
virtualenv false

Posts: 7

Participants: 3

Read full topic

Samsung TVs

$
0
0

@buzurk wrote:

Hi

I got three samsung TVs that i am having mixed results with

2x TVs get auto discovered by HA in the integrations UI, they add into the system ok and appear to be working, but no controls at all, cannot power off, adjust volume or anything

My newest TV, a Samsung RU7000 75" does not get detected at all

All TVs are connected via cat6 and show on the network, is there something i am missing?

Posts: 2

Participants: 2

Read full topic

Disabled a 'person' - how do I re-enable them?

$
0
0

@Emmanuel wrote:

Hi, I am not sure if this is a bug/feature but I am a bit stuck here…

  • I have some ‘person’ badges, yesterday I clicked on one, clicked on the wheel (top right) and then disabled that entity
  • rebooted and everything was as I expected (entity is disabled’
  • I now cannot find how to re-enable the ‘person’, I cannot find the ‘enable’ switch in the person configuration panel nor can I find the ‘person’ as an entity in the registry

Any suggestions?

Posts: 3

Participants: 2

Read full topic

All items in lovelace vanishing after loading

$
0
0

@CountParadox wrote:

hey guys and gals,

Since about 106 ive been facing this issue,

its easiest to understand if you see it…

I have tried disabling Custom Header but it still happens…
I have tried removing heaps of things and I have no idea whats causing it?

Anybody got tips to figure out why?

Posts: 4

Participants: 2

Read full topic


Pet vibration sensor alert if my dog eat

$
0
0

@henaa wrote:

Hi
I have next automation
The problem i get 5-6-7 notification in the raw
What I need to do to get 1 notification in 10 minutes ?

- id: '1584303212158'
  alias: Someone Eating
  trigger:
  - event_data:
      entity_id: binary_sensor.vibration_158d0002c4c833
      movement_type: vibrate
    event_type: xiaomi_aqara.movement
    platform: event
  action:
  - data:
      message: Someone eating !
    service: notify.mobile_app1
  - data:
      message: Someone eating !
    service: notify.mobile_app2

Posts: 7

Participants: 4

Read full topic

Delete Auto-discovered device

$
0
0

@viennacalling wrote:

Hi,

I have seen multiple topics around it in the forum but I still don’t get it.

How do I delete an auto-discovered device?
In my case I am using the Tradfri integration. I removed a bulb from Tradfri Hub.
Now I would like to delete it from Home Assistant. What’s the right way to do it?

Thank you

Posts: 2

Participants: 2

Read full topic

Home assistant + MQTT + milight wifi hub emulator / limitlessLed - Milight Android app

$
0
0

@tom_el_camino wrote:

Hi,
i’m following all tutorials I find here. what i’ve got working for me now is connecting to my
(emulated) milight hub via ip address and controlling my ledstrip.

what my main issue is: In every tutorial for mqqt or limitlessLed, i read “make sure you can connect to the hub via android app” but this part is impossible. I’ve created the hub myself following this tutorial:

https://blog.christophermullins.com/2017/02/11/milight-wifi-gateway-emulator-on-an-esp8266/

but I can’t access the hub via the official milight android app, because I can’t put the hub in “LINK” mode (as it’s my NODEMCU and NRF24L01+ and not an official hub)

it seems as long as I can’t connect with the Android app, all the rest isn’t working either.

Posts: 1

Participants: 1

Read full topic

Tibber connection fails?

$
0
0

@leifis80 wrote:

Hi.
I’m a new user of HA, and still experiment a bit to see what this can do.
And I have run into some problems. Have search a bit but haven’t found any solutions that helps me.

I’m trying to get the intergration whit tibber to work, but it fails.
I have removed old token and got a new, but still. Seems like I miss something or there is something wrong at Tibber.

config

Posts: 3

Participants: 2

Read full topic

Automation Help - Add a delay before testing conditions

$
0
0

@truxntrax wrote:

I am using the automation editor integration for writing my automatons. All is going well so far. However, I have now hit a blocker.

I am seeking to trigger an automation, wait 5 minutes before testing the conditions, and then initiate the action based on the conditions being met.

Where do I add the delay/ wait?

Here is the yaml the automation editor has created for me so far:

alias: Heating Night Mode
  description: ''
  trigger:
  - entity_id: binary_sensor.alarm_set_status_2
    from: 'off'
    platform: state
    to: 'on'
  condition:
  - condition: state
    entity_id: person.john
    state: home
  - condition: or
    conditions:
    - condition: state
      entity_id: person.cath
      state: home
  - condition: or
    conditions:
    - condition: state
      entity_id: person.elizabeth
      state: home
  action:
  - data:
      hvac_mode: auto
      temperature: 16
    entity_id: climate.wiser_central_heating_zone
    service: climate.set_temperature
  - data:
      hvac_mode: auto
      temperature: 16
    entity_id: climate.wiser_lounge
    service: climate.set_temperature

I’ve searched the cookbooks and examples but can’t find anything that seems similar - specifically the delay before testing the location condition.

Thanks

John

Posts: 11

Participants: 4

Read full topic

Viewing all 107832 articles
Browse latest View live


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