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

Scene - can't delete - yaml file empty

$
0
0

@stolevegen wrote:

Hi.

I had a scene called “good night”, but wanted to use a script instead. The scene was made in yaml so I couldn’t edited from the frontend. I therefore deleted the scenes.yaml file. The problem is ;

The “good night” scene ;

  • Still appears in the frontend.
  • Still functions.
  • Still can’t be deleted, or edited, from frontend.

Has anyone had a similar expreience, any way to fix this?

Posts: 1

Participants: 1

Read full topic


Setting media player friendly name via customization does not work

$
0
0

@dma_k wrote:

Dear community,

I have media player set up the following way:

media_player:
  - platform: androidtv
    host: ...

The entity appears with name “Fire TV” on the card and I would like to customize it like this:

customize:
  media_player.fire_tv:                                                  
    # Does not work:                                                     
    friendly_name: "Amazon Fire TV"                                     
    # Works just fine:
    icon: mdi:television-box                                             

however the result is that the icon is correctly set, but friendly name is ignored. Very strange limitation…

Posts: 4

Participants: 2

Read full topic

Reset values of utility_meter

$
0
0

@iz3man wrote:

I setup utlity_meter yesterday, and it is working fine for hourly and daily.
But weekly, monthly and yearly shows several hundred - possibly until next reset date/time.
Now, this of course is not correct. I can go to developer tools -> states and set the state to the desired value, but it’s back to the too high value after restart/reboot.
How can this be solved?

And where can I change the units from “Wh” to “kWh”? The sensor utility_meter reads from is set to kWh and shows that correctly.

Thanks!

Posts: 14

Participants: 5

Read full topic

Class objects

$
0
0

@ninjadog wrote:

Think this might be a “NO” but just checking…

Upon reading quite a few of the [dev] docs , I cannot ascertain if HA natively supports class objects, objects that can be instantiated to create a specific [derived] device based on the class object , which can then be instantiated to create a reciprocal entity.

For example, if we had10 radiator TRVs all the same model, ijmplemented on the mqtt platform as a sensor device with various entities implementing features of the device. On top of this there are scripts and automation, for each sensor which automate movement of input/output data. That’s a lot of code and maintenance for just one model of device.

Better, would be allow the user to configure a sensor class that can define public/private virtual/concrete configuration. This might be variables, automation, scripts, template etc… This would allow the user, through configuration.yaml (or include/packages) to instaniate the class and provide the required concrete attributess and overrride virtual arrtibutes.
e.g.

class:
  sensor:
    platform: "class" 
      public:
        virtual:
        #-- All required muteablevvariables of the mqtt:class_sensor component 
        #-- must be supplied here, unless they are *private* in which case
        #-- HA forces the instantiated class to provide the attribute key/value pair.
          name: string
          state_topic: string
          command_topic: string
        concrete:
        #-- These variables are available to use in instantiations
        #-- but are immuteable.
          mqtt_broker: mqtt.class_broker
      private:
        #-- These variables are not available to instantiations and are immuteable.
        #-- These would principally be mandated by the platform and would never change.
        automation:
           - alias: xyz
             // code , makes use of virtual and concrete variables //


# create component - Valid
trv:
  name: my test entity
  state_topic: "/mqtt/mytrv/state"
  command_topic: "/mqtt/mytrv/command"

# create component - INVALID
trv:
  #-- missing "name:"
  state_topic: "/mqtt/mytrv/state"
  command_topic: "/mqtt/mytrv/command"

# create component - INVALID
trv:
  #-- missing "name:"
  state_topic: "/mqtt/mytrv/state"
  command_topic: "/mqtt/mytrv/command"
  #-- attempt to override automation
  automation:

# create component - INVALID
trv:
  #-- missing "name:"
  state_topic: "/mqtt/mytrv/state"
  command_topic: "/mqtt/mytrv/command"
  #-- attempt to override mqtt_broker
  mqtt_broker: mqtt.my_broker

you get the idea?

Posts: 4

Participants: 3

Read full topic

Accessing configuration.yaml from host os

Device_tracker state automation constantly triggering

$
0
0

@sebk-666 wrote:

Hi,
I want to build an automation that turns on my laptop’s docking station when the laptop is on and off when the laptop is off / in standby.

To spare me some repetition, I templated this like so:

alias: '[Power] Switch Thinkpad Dock with Thinkpad State'
trigger:
  - platform: state
    entity_id: device_tracker.thinkpad
action:
  service_template: >
    {%if is_state('device_tracker.thinkpad', 'home') %}
    switch.turn_on
    {%else%}
    switch.turn_off
    {%endif%}
  data:
    entity_id: switch.thinkpad

The problem is, that this triggers every 5s or so and not only when the device_tracker state changes.
Does anyone know why that is?

I can split this into two automations for the homenot_home and not_homehome state transitions and it will work as expected, but I’d rather have a single piece of code to maintain.

Sebastian

Posts: 6

Participants: 3

Read full topic

Hass.io + tensorflow object_detection

$
0
0

@iphenomenom wrote:

Hello, I searched all over the internet but I can not seem to find any help related to this. I´m new to this and perhaps this has a easy fix. My Hass.io in installed in a docker, and the ubuntu server as a VM in proxmox, the hypervisor is installed on a Intel NUC. 

The logs says: 
**Invalid config for [image_processing.tensorflow]: not a file for dictionary value @ data['model']['graph']. Got '/configuration/tensorflow/ssd_mobilenet_v2_coco_2018_03_29/frozen_inference_graph.pb'. (See /config/configuration.yaml, line 29). Please check the docs at https://www.home-assistant.io/integrations/tensorflow**

My configuration for tensorflow: 
**image_processing:**
**  - platform: tensorflow**
**    source:**
**      - entity_id: camera.camera**
**    model:**
**      graph: /configuration/tensorflow/ssd_mobilenet_v2_coco_2018_03_29/frozen_inference_graph.pb**

I really hope someone has a solution for this, I sat for hours and hours trying to solve this. 

Posts: 4

Participants: 2

Read full topic

Zigbee2MQTT - unable to permit joining

$
0
0

@rm3379 wrote:

Hi :slight_smile:

Fresh install of the latest version of HA on my Odroid XU-4

Mosqito broker and Zigbee2Mqtt addon installed

I have put this script from the git of the zigbee2mqtt project :

mqtt:
  broker: core-mosquitto # This will have to be your mqtt broker, Mosquitto addon is recommended.
  discovery: true

input_boolean:
  zigbee_permit_join:
    name: Allow devices to join
    initial: off
    icon: mdi:cellphone-wireless

timer:
  zigbee_permit_join:
    name: Time remaining
    duration: 600 # Updated this to the number of seconds you wish

sensor:
  - platform: mqtt
    name: Bridge state
    state_topic: "zigbee2mqtt/bridge/state"
    icon: mdi:router-wireless

automation:
  - id: enable_zigbee_join
    alias: Enable Zigbee joining
    trigger:
      platform: state
      entity_id: input_boolean.zigbee_permit_join
      to: 'on'
    action:
    - service: mqtt.publish
      data:
        topic: zigbee2mqtt/bridge/config/permit_join
        payload: 'true'
    - service: timer.start
      data:
        entity_id: timer.zigbee_permit_join
  - id: disable_zigbee_join
    alias: Disable Zigbee joining
    trigger:
    - entity_id: input_boolean.zigbee_permit_join
      platform: state
      to: 'off'
    action:
    - data:
        payload: 'false'
        topic: zigbee2mqtt/bridge/config/permit_join
      service: mqtt.publish
    - data:
        entity_id: timer.zigbee_permit_join
      service: timer.cancel
  - id: disable_zigbee_join_timer
    alias: Disable Zigbee joining by timer
    trigger:
    - platform: event
      event_type: timer.finished
      event_data:
        entity_id: timer.zigbee_permit_join
    action:
    - service: mqtt.publish
      data:
        topic: zigbee2mqtt/bridge/config/permit_join
        payload: 'false'
    - service: input_boolean.turn_off
      data:
        entity_id: input_boolean.zigbee_permit_join

But nothing happen when I click on join… I cannot pair any of my zigbee devices

Here’s my zigbee2mqtt log :

Blockquote
[s6-init] making user provided files available at /var/run/s6/etc…exited 0.
[s6-init] ensuring user provided files have correct perms…exited 0.
[fix-attrs.d] applying ownership & permissions fixes…
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts…
[cont-init.d] done.
[services.d] starting services
[services.d] done.
./run.sh: line 17: [Info] Configuration backup found in /share/zigbee2mqtt/.configuration.yaml.bk. Skipping config backup.: No such file or directory
[Info] Socat is DISABLED and not started
2020-03-10T12:57:59: PM2 log: Launching in no daemon mode
2020-03-10T12:57:59: PM2 log: App [npm:0] starting in -fork mode-
2020-03-10T12:57:59: PM2 log: App [npm:0] online
zigbee2mqtt@1.11.0 start /zigbee2mqtt-1.11.0
node index.js
zigbee2mqtt:info 2020-03-10 12:58:03: Logging to console and directory: ‘/share/zigbee2mqtt/log/2020-03-10.12-58-02’ filename: log.txt
zigbee2mqtt:info 2020-03-10 12:58:03: Starting zigbee2mqtt version 1.11.0 (commit #unknown)
zigbee2mqtt:info 2020-03-10 12:58:03: Starting zigbee-herdsman…
zigbee2mqtt:info 2020-03-10 12:58:05: zigbee-herdsman started
zigbee2mqtt:info 2020-03-10 12:58:05: Coordinator firmware version: ‘{“type”:“zStack12”,“meta”:{“transportrev”:2,“product”:0,“majorrel”:2,“minorrel”:6,“maintrel”:3,“revision”:20190608}}’
zigbee2mqtt:info 2020-03-10 12:58:05: Currently 0 devices are joined:
zigbee2mqtt:info 2020-03-10 12:58:05: Zigbee: disabling joining new devices.
zigbee2mqtt:info 2020-03-10 12:58:05: Connecting to MQTT server at mqtt://core-mosquitto
zigbee2mqtt:info 2020-03-10 12:58:05: Connected to MQTT server
zigbee2mqtt:info 2020-03-10 12:58:05: MQTT publish: topic ‘zigbee2mqtt/bridge/state’, payload ‘online’
zigbee2mqtt:info 2020-03-10 12:58:06: MQTT publish: topic ‘zigbee2mqtt/bridge/config’, payload ‘{“version”:“1.11.0”,“commit”:“unknown”,“coordinator”:{“type”:“zStack12”,“meta”:{“transportrev”:2,“product”:0,“majorrel”:2,“minorrel”:6,“maintrel”:3,“revision”:20190608}},“log_level”:“info”,“permit_join”:false}’

Any ideas ? :thinking:

Thanks :wink:

Posts: 14

Participants: 2

Read full topic


How can i install floorplan at home assistant

$
0
0

@Bryan_Zapata wrote:

I was unable to install floor plan. I saw a tutorial and the github code is conflicting. Has anyone been able to install it?

Posts: 8

Participants: 3

Read full topic

Only 5 of 10 devices shown in Z-Wave Network Management node list

$
0
0

@tanuva wrote:

G’day!

I have just over ten devices in my Z-Wave network, a few of them dead duplicates. To remove the dead and configure others I need to select them in the node list on HA’s Z-Wave Network Management page. (Right?) However, only five* devices are shown in that list.

The Z-Wave controller (RaZberry) is always listed, as well as node 4 (Fibaro Multi Sensor) and often the most recently added device.

What can I do to make all Z-Wave nodes selectable?

Setup

Prior work

* Not entirely sure if I haven’t seen six at some point, never the complete list though.

Posts: 1

Participants: 1

Read full topic

iOS informations in Home Assistant

$
0
0

@vjuluss wrote:

Hi,

I don’t know if I’m in the right place for this topic…

I installed Home Assistant to give it a try. I want to use an app on my iPhone so I installed the official companion. But when I am logged in, I can see informations about my phone (battery for instance).

I don’t want to see these informations in home assistant :

  1. It’s useless for me
  2. I think it’s not ergonomic on the interface IMO. So far I would like to see only my devices (some lights and some plugs). We’ll see later for the weather and other things.
  3. I guess it will use the battery of the iPhone, won’t it ?

What should I do ?

Thanks !

Posts: 2

Participants: 2

Read full topic

Generic Camera not working

$
0
0

@chris-kuhr wrote:

Hi,

I have a RPi B+ serving a picture from the Pi Cam.
I can access the picture via web browser easily and as expected under the following url: http://10.5.0.53:8080/bwtdisplay.jpg.

I have configured the generic ip camera integration as follows:

camera:
  - platform: generic
    still_image_url: http://10.5.0.53:8080/bwtdisplay.jpg
    verify_ssl: false

All I can see in the overview is the name of the camera with the status “idle” next to it. When I click on the camera, a frame with the camera name is shown but nothing else.

If I add a name attribute to the camera, it is not recognized.

What am I doing wrong?

BR,
Ck

Posts: 16

Participants: 3

Read full topic

Help with RGB controller

$
0
0

@Freestila wrote:

Hello,

i have a rgb controller running tasmota. i get the following message via MQTT (formatted):

stat/rgbled1/RESULT = {"POWER":"ON",
"Dimmer":67,
"Color":"93,171,73",
"HSBColor":"108,57,67",
"Channel":[36,67,29]}

Can somebody help me get the configuration entry right? I tried it with json template and other template, but at most i got parts of it working (e.g. on and off, but not the color or brightness).


- platform: mqtt
  name: "rgb.kleiderschrank"
  command_topic: "cmnd/rgbled1/power"
  state_topic: "stat/rgbled1/POWER" 
  rgb_state_topic: "stat/rgbled1/color" 
  rgb_command_topic: "cmnd/rgbled1/color" 
  brightness_state_topic: "stat/rgbled1/DIMMER" 
  brightness_command_topic: "cmnd/rgbled1/dimmer" 
  retain: false
  payload_available: "Online"
  payload_not_available: "Offline"

I can not make heads and tails out of the home assistant docu about mqtt light. Like, if i use json attributes, i need to parse the json string i get, but since i have only one json_attributes_template, how can i map the extracted values to the attributes like rgb or hue saturation brightness?

Thanks :slight_smile:

Posts: 1

Participants: 1

Read full topic

Sensor show switches are on

$
0
0

@poudenes wrote:

Hi All,

I have a creative way to show what switches are on. But can someone help me to make it better?
Now all names will become behind each other. No , or and. Maybe someone can show me a script thats make it nicer to read…

###########################################################################################
#
# SENSOR TEMPLATE
#
# https://www.home-assistant.io/integrations/template/
#
###########################################################################################
---
platform: template
sensors:
  switch_active:
    friendly_name: "Switch "
    value_template: >-
      {% if states.switch.newkaku_0114ef92_b.state == "on" %} Wall {% endif %}
      {% if states.switch.newkaku_0114ef92_c.state == "on" %} Window {% endif %}
      {% if states.switch.meek_kitchen_seeling.state == "on" %} Kitchen Seeling {% endif %}
      {% if states.switch.meek_kitchen_sink.state == "on" %} Kitchen Sink {% endif %}
      {% if states.switch.newkaku_011fdd46_c.state == "on" %} Dressoir {% endif %}
      {% if states.switch.meek_hallway.state == "on" %} Hallway {% endif %}
      {% if states.switch.newkaku_011fdd46_b.state == "on" %} Balcony {% endif %}
      {% if states.switch.meek_bedroom.state == "on" %} Bedroom {% endif %}
      {% if states.switch.meek_bathroom.state == "on" %} Bathroom {% endif %}
      {% if states.switch.meek_toilet.state == "on" %} Toilet {% endif %}
      {% if states.switch.meek_cooking.state == "on" %} Cooking {% endif %}
      {% if states.switch.newkaku_014e5906_a.state == "on" %} Testing {% endif %}

Posts: 3

Participants: 2

Read full topic

Active button transparency

$
0
0

@JKW wrote:

Hi, a couple of versions ago the following behavior started: once I click on a button its background turns transparent. How can I get rid of that?

I haven’t update my skin during that time, so it seems to be a “new” function of the frontend.
I’ve tested other themes and they have other effects, but I’d like to keep my buttons the same.

Thanks

Posts: 1

Participants: 1

Read full topic


Moving installation to an old laptop. Need some pointers please

$
0
0

@krash wrote:

Hey guys,
I decided to move from my tinkerboard to an old laptop i have hanging around.
It is a i5-2450 with 8gb ram and an 128gb ssd.

First question is:

  • Does that sound like an OK machine to move my HA installation on?
  • Plus, any pointers towards using a laptop instead of an NUC?

Secondly, I have studied the forums and found lots of options as to how i should install hassio.

  • I cant quite understand which one i should follow in order to maintain the add-on options.
  • I am leaning towards something like this (docker/ubuntu), but i cant seem to figure out which version of linux i should pick and install before docker.
  • Which image should i pick for my case? the NUC one?
  • And then there’s the supervised home assistant on a linux host which i dont understand at all
  • Also i would like to set up an sql (or maria db) server and optionally a kodi and a pihole (if that’s how it’s called when it’s not on a pi) instance (or docker containers - i dont know what are the right terms)

If anyone could give me a couple of pointers to get me started that would be greatly appreciated.
Thanks in advance!

Posts: 5

Participants: 3

Read full topic

Turning off all house lights with automation

$
0
0

@Sidioussam wrote:

I noticed recently that my presence based automation for turning off all the lights and switches in my house wasn’t working. A quick search revealed that it may be to do with the depreciation of groups in the last update (.105 I think.)

Can someone confirm if it’s true that"group.all_devices", “group.all_lights”, and “group.all_devices” are no longer valid? If so, is there a function to replace them?

Posts: 3

Participants: 3

Read full topic

Virtual Thermostat for single heater but multiple TRVs

$
0
0

@Catobi wrote:

Hi, I am relatively new to HA (coming from domoticz) and I am having problem setting up a virtual thermostat. I searched the forum and read the doc with no success.

I have a single heater (controlled by a zwave switch) and one zwave TRV for each room. I created a thermostat card in lovelace for each TRV so that each room temp can be set independently.
I want to turn off the heater when all the TRVs have reached the desired temp and turn it on when at least one has not.
I read the Generic thermostat doc and I tried it out, but it cannot work since it requires a single temp sensor reading while I need it to check the above conditions.

More formally what I want is something like this:

  • turnON HeaterSwitch
    IF
    HeaterSwitch = Off AND
    ( TRV-Study.temp < TRV-Study-Comfort - 0,3 OR
    TRV-Bedroom.temp < TRV-Bedroom-Comfort - 0,3 OR
    TRV-Bedroom2.temp < TRV-Bedroom2-Comfort - 0,3 OR
    LivingRoom.temp < LivingRoom-Comfort -0,3)

  • turnOFF HeaterSwitch
    IF
    HeaterSwitch = On AND
    ( TRV-Study.temp > TRV-Study-Comfort + 0,3 AND
    TRV-Bedroom.temp >TRV-Bedroom-Comfort + 0,3 AND
    TRV-Bedroom2.temp > TRV-Bedroom2-Comfort + 0,3 AND
    LivingRoom.temp > LivingRoom-Comfort + 0,3)

Thanks in advance for any help!

Posts: 1

Participants: 1

Read full topic

¿if i integrate zigbee there is no need to install amazon alexa?

$
0
0

@Bryan_Zapata wrote:

I am integrating the devices with a Wi-Fi network and Tuya. When I was going to install a plug it turns out that it was from the brand of Amazon and to be able to match it I have to integrate the app amazon alexa. Its integration is too extensive and you have to pay the AWS cloud or the HA cloud so it occurred to me to solve it with Zigbee. I don’t know if this solution allows me to integrate all the devices I need.
What other solution could you use to not use the
AWS or cloud HA servers?

Posts: 4

Participants: 3

Read full topic

Help, can't get history-graph card to display graph instead of value bar for temp sensor

$
0
0

@smart wrote:

(topic withdrawn by author, will be automatically deleted in 24 hours unless flagged)

Posts: 1

Participants: 1

Read full topic

Viewing all 108197 articles
Browse latest View live


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