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

Samba Share not allowing to configure

$
0
0

@1Mike wrote:

Just did a fresh install of Hassio on a Rpi. I installed Samba share 9.2.0. There is no place to edit or save the configuration. I believe there used to be a dialog box where you could edit the configuration and then save it. I don’t see that any longer. There is just the instructions to edit the file.

Posts: 6

Participants: 3

Read full topic


Rasp Pi 4 & z-wave install help?

$
0
0

@Cmriquinha9798 wrote:

Hey all. I too am new to this and am having an issue with z-wave. Home assistant loaded onto raspberry pi 4 with no issues at all, however, I was unable to get my Zooz S2 z-wave plus stick to run or install properly. Below is the error I get. Any help would be appreciated.

A couple of questions:

  1. I loaded the HA image directly to RPI4 without any other OS. Is this an issue? Should I load an OS (Linux) onto the RPI4 first?
  2. Is Config file, similar to root? I am not an IT guy or anything but I am wondering if yaml acts similar to code?

“2020-05-04 18:35:14 ERROR (MainThread) [homeassistant.bootstrap] Failed to parse configuration.yaml: in “/config/configuration.yaml”, line 21, column 18: Unable to read file /config/zwave_device_config.yaml… Activating safe mode”

Again, thank you for any and all assistance.

Posts: 1

Participants: 1

Read full topic

Amazon Alexa Smart Home Skill Manual Setup Configuration Issues

$
0
0

@MarkB1 wrote:

So I am trying to setup the following

I have Duck DNS and NGINX configured and working.

I can get as far as the test Lambda function

I set the BASE_URL as my duckdns, https://redacted.duckdns.org

I generated a long live acces token from here

image

copy pasted into

image

So when I go to test I get as far as

{
“event”: {
“payload”: {
“type”: “INVALID_AUTHORIZATION_CREDENTIAL”,
“message”: “401: Unauthorized”
}
}
}

I have tried a couple of times from scratch in case I have missed domething in the instructions but same result both times/

Any suggestions?

Posts: 1

Participants: 1

Read full topic

RFXTRX: adding new lights

$
0
0

@fversteegen wrote:

I thought I was quite accustomed to Homeassistant, but apparently my knowledge is lacking on some points…

Back in the non-Lovelace days I would simply add rfxtrx lights through the “automatic_add: true” setting. After activating the lights they would show up in my dashboard. This is also still according to the instructions at https://www.home-assistant.io/integrations/light.rfxtrx/

As we are now on Lovelace exclusively I do not know where to find the automatically added entities any longer… I was expecting to find them in the “unused entities” section, but they aren’t there.

Can anyone tell me where to find the automatically added lights/switches?

Posts: 1

Participants: 1

Read full topic

Spotify integration do not work

$
0
0

@Matt5918 wrote:

Hello all, I’m happy to join the home assistant community :grinning:

I followed the topic to link spotify but unsucceful.

Configuration file is in /config

Since I am in docker, I check the path and go to the “real” folder

Perfect so I modify this file :

With the required lines :
spotify:
id_client: xxx
id_secret: xxx

Go back to integration and select spotify :
Aborted :sob:

What is wrong ?

Thank you

Posts: 1

Participants: 1

Read full topic

Aeon USB Stick issues

$
0
0

@costy wrote:

352/5000

After installing the z wave stick, it appears in HA.
I can add z wave devices.
But if I restart the HA the devices and the stick appear as “undefined”.
If I take the stick out of the usb cable and take it to the garden to add devices, when reinserting it into the usb cable, it doesn’t work anymore.
In order to reinstall the stick, I have to reset it.

What needs to be done?

Posts: 1

Participants: 1

Read full topic

LG WebOS Tv unavailable after HA upgrade to 0.109

$
0
0

@elle2 wrote:

After upgrade to HA Core 0.109.3, my LG WebOs tv is always unavailable after HA restart until I manually switch on the tv with physical remote.
After this operation, the component shows the correct state in HA and all operations are possible.
This behavior was not present in previous HA release (0.108.x).
Additionally I had a problem with this component during the first run of HA after upgrade: the lg webos media_player component was not present into HA.

Posts: 1

Participants: 1

Read full topic

Kodi.call_method help

$
0
0

@jimpower wrote:

Hi I am trying to use the kodi.call_method to retrieve stats on Movie/TV Shows total and then watched/unwatched.

I can see results with this call method

{"entity_id": "media_player.kodi", "method": "VideoLibrary.GetMovies"}

can someone help me with how to add filter parameters to get watched/unwatched values?

Posts: 2

Participants: 2

Read full topic


Scan_Interval Not Working for Scrape?

$
0
0

@invinciberry wrote:

I have a scrape sensor set to get the realtime power cost on oeb.ca. I can get the data to show up under the correct entity. But the information only gets scraped on system boot-up and scan_interval doesn’t seem to do anything. Am I doing something wrong?

  - platform: scrape
    resource: https://www.oeb.ca/rates-and-your-bill/electricity-rates
    name: Electricity Price
    select: "li.on-peakactive > span.value, li.off-peakactive > span.value, li.mid-peakactive > span.value"
    value_template: '{{ ((value.split(" ")[0])) }}'
    unit_of_measurement: "¢/kWh"
    scan_interval: 60

Posts: 2

Participants: 2

Read full topic

Creating a card to play a custom m3u over google mini group

$
0
0

@Chompas wrote:

Hi,

I’m new to Home Assistant and I’m absorving as much information as possible. Today I installed it on my Raspberry PI and I’m trying to create a card that plays a custom url m3u audio over my google cast group.

The problem is, I’m too new and I think I’m not doing things right since I’m missing basic things.

I’ve installed mini media player but I’m not sure how to add a custom card with the url so I can click play and cast this audio over my different speakers.

As a side question, I see most of the code that is shared on documentation has a particular indentation and dashes but when I copy paste that into the code editor for a card I need to manually fix the whole indentation so I think I’m missing things.

Thanks and sorry if this is a very basic question. I’ll keep reading documentation.

Posts: 1

Participants: 1

Read full topic

Mini-graph-card problems

$
0
0

@winonaryder wrote:

Hello,

Today I got around to installing and configuring HACS, so that I could install some custom cards.

I installed - and added to Lovelace, the bigNumber card, for example. I can add Big Number cars to my lovelace dashboard no problem.

I’ve followed the same steps with others - mini-graph-card, Power Wheel, Dual Gauge - But I can’t seem to add these card types when I configure my UI.

I’ve tried adding in YAML code via the raw config editor, and the card doesn’t display

HACS installs the plugins at /config/www/community/mini-graph-card/.

I’ve tried adding:

resources: 
  url: /hacsfiles/mini-graph-card/mini-graph-card-bundle.js
  type: module

into the raw config editor, but there’s no effect.
I seem to have refreshed, cleared the cache, and restarted HA multiple times.

Are these custom cards only available and able to be used if lovelace is in yaml mode?
Am I performing some sort of rookie error?

Posts: 2

Participants: 2

Read full topic

Use timer to find out the total time

$
0
0

@vaidyasr wrote:

I would like to use the timer component to find out how many hours a specific component has been switched on. For example, I have a POW connected before the A/C to measure the power. The A/C may not be ON all times. I am finding out whether the A/C is switched ON or not by findout the surge in energy. I would like to measure the time used when there is a power surge to high till low. I cannot depend on the POW ON/OFF as it may be always ON.

I found the timer component will not work without the total time and basically acts like a countdown timer.

How do I use the timer for stop watch scenario?.

Posts: 1

Participants: 1

Read full topic

Replacing a tasmota socket for a constant W and converting that to kWh

$
0
0

@spaya wrote:

Dear all,

I am breaking my head trying to replace a tasmota measuring socket, into a constant W sensor which then converts to daily kWh.

Setup:
I have a smart meter where I get the continuous electrical usage of my house, I have started monitoring the usage per device, where the only big thing I cannot measure is the induction plates (does anyone have ideas around 3 phase tasmota measurements?)

Anyways, I currently monitor 25 Tasmota sockets, and I realized that some are always measuring the same output, so I wanted to redeploy them and create constants so that I dont miss those measurements.

Eg. the ventilation system of the house is always using 13W hour for a total of 0.333 kWh a day.
I would like to have a sensor showing 13W all the time, and a kWh sensor that starts at 0 at 00:00 in the night, and ends at 0.333 at 23:59:59.

I have created the following test but no luck unfortunately, code compiles etc. I know i still miss the utility meter template for night restart, but the basics are still not in place.

When I look at sensor.total_ventilation_watts I get 13, if I plot it in grafana, I get a nice constant line at 13. However sensor.total_ventilation_kwh shows 0.00. I have tried raising the value from 13 to 20000 so that i would not have to wait for the kWh to start recording, but it doesnt matter. the kWh constant remains at 0.00, even after 12 hours of 20000 W “usage”.

I was hopping you could help. thx!

sensor:

  • platform: template
    sensors:
    total_ventilation_watts:
    value_template: ‘{{ 13 }}’
    friendly_name: ‘Total ventilation Power Use’
    unit_of_measurement: ‘W’

  • platform: integration
    source: sensor.total_ventilation_watts
    name: total ventilation kwh
    unit_prefix: k
    round: 2
    unit_time: s
    method: left

Posts: 2

Participants: 2

Read full topic

Strange "Units: C" part in Entity

$
0
0

@poudenes wrote:

Hi ALl,

Im using Zwave2Mqtt. Have some door sensors and they also send temperature.
Homekit now complain about a Value:

ValueError: C is not a recognized temperature unit.

sensor.node_13_temperature:
value_id: 101-49-1-1
node_id: 101
class_id: 49
type: decimal
genre: user
instance: 1
index: 1
label: Air Temperature
units: C
help: Air Temperature Sensor Value
read_only: true
write_only: false
min: 0
max: 0
is_polled: false
value: 17.8
lastUpdate: 1588642402824
unit_of_measurement: C
friendly_name: Frontdoor Temp
device_class: temperature
templates:
  icon_color: >-
    if (state > 38) return 'rgb(181,14,2)'; if (state > 32) return
    'rgb(214,18,4)'; if (state > 27) return 'rgb(255,0,0)'; if (state > 21)
    return 'rgb(255,150,0)'; if (state > 16) return 'rgb(255,204,0)'; if (state
    > 10) return 'rgb(0,255,0)'; if (state > 4) return 'rgb(4,181,4)'; if (state
    > -1) return 'rgb(0,170,217)'; if (state > -7) return 'rgb(0,0,255)'; if
    (state > -12) return 'rgb(121,24,196)'; if (state > -18) return
    'rgb(176,0,189)'; if (state > -23) return 'rgb(189,0,107)'; return
    'rgb(0,0,0)';
icon_color: 'rgb(255,204,0)'

But when I check in Zwave2Mqtt I see this JSON payload:

{
  "type": "sensor",
  "object_id": "temperature_air",
  "discovery_payload": {
    "value_template": "{{ value_json.value }}",
    "device_class": "temperature",
    "unit_of_measurement": "C",
    "state_topic": "homeassistant/diningroom/door_imac/49/1/1",
    "json_attributes_topic": "homeassistant/diningroom/door_imac/49/1/1",
    "device": {
      "identifiers": [
        "zwave2mqtt_0xf2a6b7f2_node100"
      ],
      "manufacturer": "FIBARO System",
      "model": "FGDW002 Door Opening Sensor 2 (0x1000)",
      "name": "diningroom-door_imac",
      "sw_version": "Unknown"
    },
    "name": "diningroom-door_imac_temperature_air",
    "unique_id": "zwave2mqtt_0xf2a6b7f2_100-49-1-1"
  },
  "discoveryTopic": "sensor/diningroom-door_imac/temperature_air/config",
  "values": [
    "49-1-1"
  ],
  "persistent": true,
  "id": "sensor_temperature_air"
}

There is no “units: C” but the correct “unit_of_measurement” part

In my customize file I have add some extra things

sensor.node_13_temperature:
  friendly_name: "Door iMac Temp"
  templates:
    icon_color: >-
      if (state > 38) return 'rgb(181,14,2)';
      if (state > 32) return 'rgb(214,18,4)';
      if (state > 27) return 'rgb(255,0,0)';
      if (state > 21) return 'rgb(255,150,0)';
      if (state > 16) return 'rgb(255,204,0)';
      if (state > 10) return 'rgb(0,255,0)';
      if (state > 4) return 'rgb(4,181,4)';
      if (state > -1) return 'rgb(0,170,217)';
      if (state > -7) return 'rgb(0,0,255)';
      if (state > -12) return 'rgb(121,24,196)';
      if (state > -18) return 'rgb(176,0,189)';
      if (state > -23) return 'rgb(189,0,107)';
      return 'rgb(0,0,0)';

Also nothing that will change the class of the device entity.

How can I solve this? The “Units C” break the option to show this entity in Homekit.

If nothing can do, I have to create a sensor template that show the temperature and put that one in Homekit, but thats only a workaround, I don’t like create more sensors if not needed :slight_smile:

Posts: 2

Participants: 2

Read full topic

Can't add devices,

$
0
0

@Creatish wrote:

Not sure if this helps but in HA logs it refers this not sure if relevant
Developer Tools

STATES

SERVICES

LOGS

TEMPLATE

EVENTS

INFO

Failed ZDO request during device initialization

9:53:03 AM – /usr/local/lib/python3.7/site-packages/zigpy/device.py (ERROR) - message first occurred at 9:52:55 AM and shows up 2 times

[0x1de7] Requesting Node Descriptor failed

9:51:35 AM – /usr/local/lib/python3.7/site-packages/zigpy/device.py (WARNING) - message first occurred at 9:51:27 AM and shows up 2 times

missing tsn from activeEpRsp, maybe not a reply

9:50:27 AM – main.py (WARNING) - message first occurred at 9:49:07 AM and shows up 6 times

Errors in ZHA adding devices below

https://hastebin.com/quvuliguju.rb

Using a CC2531 USB stick flashed with the latest Z-Stack Home 1.2 firmware plugged into usb on a Intel nuc runnign hassos in virtualbox with that USB added access to the VM

Posts: 1

Participants: 1

Read full topic


Error chocked at offset

$
0
0

@argykaraz wrote:

Logger: zeroconf
Source: /srv/homeassistant/lib/python3.7/site-packages/zeroconf/__init__.py:365
First occurred: 10:06:01 AM (1 occurrences)
Last logged: 10:06:01 AM

Choked at offset 195 while unpacking b'\x00\x00\x84\x00\x00\x00\x00\x04\x00\x00\x00\x00\x0f_home-assistant\x04_tcp\x05local\x00\x00\x0c\x00\x01\x00\x00\x11\x94\x00\x0f\x01F\x01R\x01I\x01D\x01A\x01Y\x00\xc0\x0c\xc02\x00!\x80\x01\x00\x00\x00x\x00\x08\x00\x00\x00\x00\x1f\xbb\xc02\xc02\x00\x10\x80\x01\x00\x00\x11\x94\x00N\x0fversion=0.109.0"base_url=https://hereismyddnsdomain.com\x1arequires_api_password=True\xc02\x00\x01\x80\x01\x00\x00\x00x\x00\x04\xc0\xa8\x01\x14'

Can anyone help me figure out what is causing it?

Posts: 1

Participants: 1

Read full topic

Templating, value_template:

$
0
0

@jaddel wrote:

Dear Community,

i created a template switch and it does what it is supposed to do, but i don’t understand what value_template actually does. Is it a kind of a condition, does it set a state?

Could somebody clear this up for me please? I read the documentation but it’s still unclear to me.

Template Switch Official Documentation

These two template switches im using currently:

#Switch Vacuum Homekit
  - platform: template
    switches:
      homekit_vacuum_downstairs:
        friendly_name: "Roomba Downstairs"
        value_template: '{{ is_state("vacuum.roomba_downstairs", "cleaning") }}'
        turn_on:
        - service: vacuum.start
          data:
            entity_id: vacuum.roomba_downstairs
        - service: counter.increment
          data:
            entity_id: counter.counter_roomba_downstairs
        turn_off:
        - service: vacuum.return_to_base
          data:
            entity_id: vacuum.roomba_downstairs
        - delay:
            seconds: 1
        - service: vacuum.return_to_base
          data:
            entity_id: vacuum.roomba_downstairs
#Main sound system
  - platform: template
    switches:
      amp:
        friendly_name: "Amp"
        value_template: '{{ is_state("switch.amp", "on") }}'
        turn_on:
          service: switch.turn_on
          data:
            entity_id: 
              - switch.socket_cinema_main
              - switch.socket_cinema_sub_left
              - switch.socket_cinema_sub_right
        turn_off:
          service: switch.turn_on
          data:
            entity_id: 
              - switch.socket_cinema_main
              - switch.socket_cinema_sub_left
              - switch.socket_cinema_sub_right

Posts: 2

Participants: 2

Read full topic

Errors that often appear in the log - platform: command_line - On-Off Plug Wi-Fi

$
0
0

@SKR-974 wrote:

Hi,
I have 3 Chacon On-Off plugs Wi-Fi with the firmware hfeasy (https://github.com/ljalves/hfeasy),
I use the commands below to control them,

switch:
  - platform: command_line
    scan_interval: 30
    switches:
      plug1:
        command_on: "curl -X GET http://192.168.1.8/state?sw=1"
        command_off: "curl -X GET http://192.168.1.8/state?sw=0"
        command_state: "curl -X GET http://192.168.1.8/state"
        value_template: '{{ value_json.relay_status == "1" }}'

  - platform: command_line
    scan_interval: 30
    switches:
      plug2:
        command_on: "curl -X GET http://192.168.1.9/state?sw=1"
        command_off: "curl -X GET http://192.168.1.9/state?sw=0"
        command_state: "curl -X GET http://192.168.1.9/state"
        value_template: '{{ value_json.relay_status == "1" }}'

  - platform: command_line
    scan_interval: 30
    switches:
      plug3:
        command_on: "curl -X GET http://192.168.1.10/state?sw=1"
        command_off: "curl -X GET http://192.168.1.10/state?sw=0"
        command_state: "curl -X GET http://192.168.1.10/state"
        value_template: '{{ value_json.relay_status == "1" }}'

The problem is that I often find the same errors in the log,
And sometimes moments of inactivity of several seconds in the history while the plug is working,

Command failed: curl -X GET http://192.168.1.***/state
*** = 8, 9 or 10

Error parsing value: ‘value_json’ is undefined (value: None, template: {{ value_json.relay_status == “1” }})

Update of switch.plug*** is taking over 10 seconds
*** = 1,2 or 3

Could there be a way to correct them please?

Posts: 1

Participants: 1

Read full topic

Plenty of errors, but HA loads and works. What ca I do?

$
0
0

@woody4165 wrote:

Hi

I’m on an Intel Nuc i3 with Proxmox and HA installed in docker on Ubuntu Server.

## Home Assistant 0.109.3
Versione Frontend: 20200427.2 - latest
Interfacce Utente personalizzate: [CustomUI-fix-nav](https://github.com/rccoleman/home-assistant-custom-ui): 20190322
## Supervisor Version 220

From a couple of days, I’m getting a lot of issues and my log is full of errors, but HA loads and I can see the dashboard.

I don’t understand where I can check for errors or what is causing them

Thanks

Here the log.

Posts: 1

Participants: 1

Read full topic

Script Service Template Throws error

$
0
0

@Whogives23 wrote:

Hi all

I seem to be unable to use AND in service templating in scripts.

livingareaautolight:
  alias: Auto Light - Living Area Manage
  sequence:
   - data: {}
    entity_id: light.backdoor
    service_template: >
        {% if states('sensor.diningroom_brightness') | float > 10 and states('sensor.diningroom_brightness') | float < 12 %} 
          light.turn_off
        {% endif %}

generates the following Error:

Logger: homeassistant.components.script
Source: helpers/service.py:123
Integration: Script (documentation, issues)
First occurred: 1:40:52 PM (1 occurrences)
Last logged: 1:40:52 PM

Auto Light - Living Area Manage: Error executing script. Unexpected error for call_service at pos 2: Template rendered invalid service:
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 115, in async_prepare_call_from_config
    domain_service = cv.service(domain_service)
  File "/usr/src/homeassistant/homeassistant/helpers/config_validation.py", line 411, in service
    raise vol.Invalid(f"Service {value} does not match format <domain>.<name>")
voluptuous.error.Invalid: Service  does not match format <domain>.<name>

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 153, in _async_step
    self, f"_async_{cv.determine_script_action(self._action)}_step"
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 623, in _async_call_service_step
    *self._prep_call_service_step(), blocking=True, context=self._context
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 252, in _prep_call_service_step
    return async_prepare_call_from_config(self._hass, self._action, self._variables)
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 123, in async_prepare_call_from_config
    ) from ex
homeassistant.exceptions.HomeAssistantError: Template rendered invalid service: 

But the following:

livingareaautolight:
  alias: Auto Light - Living Area Manage
  sequence:
   - data: {}
    entity_id: light.backdoor
    service_template: >
        {% if states('sensor.diningroom_brightness') | float > 10 %} light.turn_off
        {% endif %}

executes without error.

Posts: 1

Participants: 1

Read full topic

Viewing all 108394 articles
Browse latest View live


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