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

Help with curl escape square brackets

$
0
0

@drimpart wrote:

Hey!

I´m using this curl command to send TTS notifications with a variable from my Mac Computer to Home Assistant:

curl -X POST -H "Authorization: Bearer MYTOKEN" -H "Content-Type: application/json" -d "{ \"entity_id\": \"media_player.schlafzimmer\", \"message\": \"test\" }" http://192.168.178.XX:8123/api/services/tts/google_say

and that works fine! Now I want to send TTS notifications from my mac to Alexa media Player, the service calls are a bit different, here is what I have so far:

curl -X POST -H "Authorization: Bearer MYTOKEN" -H "Content-Type: application/json" -d "{ \"target\": \"media_player.schlafzimmer_dot\", \"message\": \"test\", \"data\": \"type:tts\" }" http://192.168.178.XX:8123/api/services/notify/alexa_media_schlafzimmer_dot

But this is not working, I think its "data":{"type":"tts"}, I don´t know how to escape the second square brackets… Can anybody help?

Posts: 2

Participants: 2

Read full topic


Footer type: graph not working as stated in documentation

$
0
0

@wschuck wrote:

Hi

Today i tried to add a footer to one of my entities card.
I already use a footer with type: buttons and work az a charm.
This time i tried to add the type: graph.
But i got an error message
Unknown type encountered: graph

The example from the docs aren’t working.

Posts: 2

Participants: 1

Read full topic

Version 0.108.1 broke braviatv?

Camera integration in floor plan (sweet home 3d)

$
0
0

@AgMa wrote:

Hi there,
I finished a floor plan of my house with sweet home 3d and I’m trying to integrate my camera in it to show live stream. However I struggle with the code part. I believe has something to do with the call-service part, but can’t figure it out.
Currently my lovelace is this:

          - entity: camera.paidiko
            image: /local/floorplan/transparent_square.png
            style:
              border: 5px solid red
              left: 28%
              top: 20%
            tap_action:
              action:
                data:
                  entity_id: camera.paidiko
                service: camera.play_stream
            type: image

I tried this but I don’t know which media player needs:

  - service: camera.play_stream
    data:
      entity_id: camera.garage_camera
      media_player: media_player.living_room_tv

Where am I wrong?

Posts: 1

Participants: 1

Read full topic

Problem with a camera card into the overview - image is not sliding

$
0
0

@Giulia_Merlini wrote:

Hello guys, I have some problem with the stream of my Xiaomi camera 1080p 360°.

I added my camera in the configuration.xaml:

- platform: generic
  name: Xiaomi
  still_image_url: http://.x.x.x.x:80/www/auto.jpg
  stream_source: rtsp://x.x.x.x:8554/mainstream'

Then I added a card (picture glance type) of my camera into my ha overview.

The problem is the following: the stream doesn’t work well, it blocks the image over and over again. The time jumps from the second 3 to 15 to 21 randomly and the stream is not sliding.

I also tried with a ffmpeg platorm in this way:

- platform: ffmpeg    
  name: Xiaomi Cam
  input: -rtsp_transport tcp -i rtsp://x.x.x.x:8554/mainstream
  extra_arguments: -vf select="eq(pict_type\,I)"'

Can someone help me please? Thank you so much

Giulia

Posts: 1

Participants: 1

Read full topic

Problem accessing 'trigger.from_state' following datas

$
0
0

@pploume wrote:

Hi,

Another un-understandable (for me) error :
as the code used :

trigger:
    platform: state
    entity_id: light.bureau
    #from: 'off'
    #to: 'on'
  action:
    - service: persistent_notification.create
      data_template:
        message: "c'est le message"
        title: "c'est le titre : {{ trigger.from_state.state }} ...."

I effectivelly get On/off (depending the state …)

I would like to access the friendly_name … with ‘trigger.from_state_friendly_name’
but I get nothing …

I’ve notice that ‘trigger.from_state’ give :

<state light.bureau=on; brightness=137, friendly_name=Bureau, supported_features=33 @ 2020-04-09T12:07:45.141192+00:00> 

with ‘;’ ending light.bureau while others are ending with ‘,’ …

How to access/read ‘friendly_name’ or ‘brightness’ ?

Thanks in advance

Posts: 3

Participants: 2

Read full topic

Switch command_line curl with parameters

$
0
0

@snatch7 wrote:

Hi, i have a problem with switch and command_line with some parameters.
If i launch switch turn on and try to read a value from a sensor my command throw an exception.
My actual configuration is

switch:
  - platform: command_line
    switches:
      ipcam_motion_switch:
        command_on: 'curl -k "http://admin:pwd@192.168.x.xx/cgi-bin/hi3510/param.cgi?cmd=setmdattr&-enable=1&-name=1&-x=0&-y=276&-w=1280&-h=444&-s={{ states.input_number.motion_sensibility.state }}"'
        command_off: some value
        command_state: some value
        value_template: '{{ value == "1" }}' 

i try all combinations with and without single / double apex…

if i put the same command in a shell_command it works:

shell_command:
  motion_ipcam_on: "curl -k http://admin:pwd@192.168.x.xx/cgi-bin/hi3510/param.cgi?cmd=setmdattr&-enable=1&-name=1&-x=0&-y=276&-w=1280&-h=444&-s={{ states.input_number.motion_sensibility.state }}"

can you help me please?
thanks :wink:

Posts: 2

Participants: 2

Read full topic

Shelly EM3

$
0
0

@richard-g8jvm wrote:

Hi
Just installed a Shelly EM on my Solar PV system on the grid side of the inverter
now Shelly spec says the current transformer has a 1% accuracy spec, not sure about the EM.
My inverter is saying 2.515KW , EM shows 2.05 KW.
I dont thing the inverter claimed level is too far out as it agrees with the metered amount generated.
So a mathmatical frig needed in the configuration.yaml

  - platform: mqtt
    name: "Solar Power"
    state_topic: "shellies/shellyem-109664/emeter/0/power"
#  value_template: "{{ value|float / 60000 }}" # Fix for Watt-minutes
    qos: 1
    unit_of_measurement: "kW"

you can see where I’ve copied the config from
the ratio of reported values is 1:1.2268
would the correction with a value template be ?

value_template: "{{ value|float * 1.2268 }}"  

The only problem with that is it displays on the guage 2.30643852 KW
Three decimal places is adequate, what do I need to add so it just reads "2.306 KW

TIA

Posts: 1

Participants: 1

Read full topic


Error showing map card HA 0.108

$
0
0

@fra wrote:

Hello everyone, after a clean installation of a new 0.108.1 release, if I publish any map, a very strange thing happens … trying to change the view (eg from the home I go to the history and then return to the home) I lose the view … I only see the icon inside the map to reset the focus. updating the page (f5) the map becomes visible again … bug ??? thank you

Posts: 1

Participants: 1

Read full topic

Lokalise Home Assistant Supervisor?

$
0
0

@mat44150 wrote:

Hi everyone,

While in this lockdown period, I have quite a lot of free time. I’d like to bring my contribution to this awesome Home Assistant project by translating some parts of the frontend to my language.
I have already checked the lokalise projects for both the Frontend and Backend, but I cant’ find the entries for a fews words that remain untranslated, like “search” or “device” (used for instance in the menu Configuration --> Devices).

Is there also a specific lokalise project for the Supervisor (ex. Hass.io tab) ? This does not seem to be translated in any language.

Thanks

Posts: 1

Participants: 1

Read full topic

No entities OSRAM zigbee on/of plug

$
0
0

@Canedje wrote:

Until now I only use zwave Neo Coolcam on/of plugs.
These plugs do have Power, voltage and current entities connected to the plug so you can trigger on values of them.

I just added a Zigbee Osram on/of plug because I like to upgrade my Zigbee mesh with a server added. (I now almost only use Zigbee sensors not upgrading my meshnetwork)
I just wonder is this plug also having entities like power, voltage and current to trigger on like the zwave plugs do have?
Because I don’t see these entities, only the switch self as entity?

Posts: 2

Participants: 2

Read full topic

Unable to link "[test] Home Assistant" app in Google home

$
0
0

@statbat wrote:

Hello,

I am trying to link my test app in google home so that i can issue voice commands.
I have done following successfully: -

  1. Made HA public
  2. Made it secure
  3. Enabled duckDNS.
  4. Created service account
  5. Created Test app

My configuration looks really simple

google_assistant:
  project_id: !secret google_assistant_id
  service_account: !include service-account.json
  expose_by_default: true

My steps in Google home android app are: -

open Home app

–> + icon on top left
–> Set up device
–> Have something already setup
–> Manage accounts
–> [Test] My app
–> it shows spinner and I am back on manage accounts.

I don’t go to login screen. I have tried everything. I have read forum. I dont have Home assistant HTML5 app on my phone. I never installed it. I even deleted bookmark in Chrome. My config is simple with no exposed domains as some people suggested.

Please help.

How can i even find out what is the error?

Versions

  • Home Assistant 0.106.5
  • Android phone using latest Google home app
  • Android OS version 9

Posts: 3

Participants: 2

Read full topic

Internet Printing Protocol (IPP)

$
0
0

@poudenes wrote:

Hi ALl,

Nice new integration. Will this integration also show more info with new updates?

total print pages
total scanned pages

The HP Printer Add-On show all the info include these 2…

Posts: 1

Participants: 1

Read full topic

Downsides of calling a service to turn on a light that is already on

$
0
0

@kroxas18 wrote:

I currently have an automation to turn on a light group of 20 individual lights every time motion is detected. If motion is detected every few seconds, I guess the service would be calling to turn on the light group even though they are already on. Are there any downsides to this? Should I be checking if the lights are already on before calling the service?

The reason it becomes tedious is because there may be an individual light that is turned off for one reason or another. I want the detected motion to turn on that individual light that is off. If I want to check for an individual light, I will need to separate the automation to check that each light is turned on, and then turn on each light individually that is not on. Is it worth the effort?

Posts: 8

Participants: 4

Read full topic

Wrong time on Telegram notify

$
0
0

@alessandro.bardi wrote:

Hi,
since last night all telegram notify has a wrong time.
The time showed is UTC intead of my zone time (UTC+2).

sensor.time is ok as well as {{ now() }} function.
Zone are configurated correctly in configuration.yaml (time_zone: Europe/Rome)

Any help is appreciated.
Regards,

Alessandro

Posts: 8

Participants: 4

Read full topic


Picture-elements background image from template possible?

$
0
0

@killthewiseone wrote:

As per title, is it possible to set the background image from a template?
Example:

type: picture-elements
image: '{{ state_attr("media_player.living_room", "entity_picture") }}'
elements:
  ... etc

I’ve tried the above and variations to no avail. I’m not sure is it my syntax or if its just not possible…

Posts: 1

Participants: 1

Read full topic

HomeAssistant Prometheus integration does not expose cover domain

$
0
0

@praveen12bnitt wrote:

Hey,
I have homeassistant - prometheus integration and i can see all the data in prometheus. What i am missing is the cover domain. I have a Garage Door that shows up in my HA dashboard. The entity name is cover.garage_door. But when i look for this in Prometheus output, i see a few reference like the one’s below.

hass_state_change_created{domain="cover",entity="cover.garage_door",friendly_name="Garage Door"} 1.5864437284034126e+09
hass_state_change_total{domain="cover",entity="cover.garage_door",friendly_name="Garage Door"} 4.0

What i am looking for is a status of the cover, something like how a binary sensor show up

hass_binary_sensor_state{domain="binary_sensor",entity="binary_sensor.back_door",friendly_name="Back Door"} 0.0

Is this a know issue? does innodb also work the same or it is only a prometheus behavior.

Posts: 1

Participants: 1

Read full topic

Insteon setup stopped working

$
0
0

@moralsnipe wrote:

Hi! I’ve been using HA successfully for a large number of Insteon switches and dimmers for quite some time now. However, after a recent upgrade to to 0.108.0 (and then back to 0.107.6, and then back to 0.108.1), it has stopped working.

My config for the 2413U is very simple:

insteon:
  port: /dev/insteonusb

However, none of my devices are controllable anymore. Here’s an example of trying to turn on a dimmer, which does nothing:

2020-04-09 09:15:33 DEBUG (MainThread) [insteonplm.devices] Starting 40.AD.17 Device._send_msg: Queuing message
2020-04-09 09:15:33 DEBUG (MainThread) [insteonplm.devices] Starting 40.AD.17 Device._process_send_queue

I’m unfortunately at a loss, as this has worked fine for months and months. (Years?). One thing I notice: my Insteon devices only show up under “Entities”, but not “Devices”. I don’t know if has always been like that? Or of it’s a clue.

Here’s a grep of “insteon” from my logs, after a complete reboot and restart of the HA docker. Patebin: https://pastebin.com/P9td3f5u

If you got this far, thanks!

Posts: 3

Participants: 1

Read full topic

Setup Home Assistant 0.108.1

$
0
0

@amurka wrote:

Hello!
I have a Raspberry pi 3b+ and a HomeAssistant 0.92 was installed that worked for about a year. Unfortunately, my SD card failed and I began to reinstall the system version 0.108.1.
I ran into a number of problems:

  1. I can’t connect Yeelight celling lamp 650 to the color bulb. Previously, these lamps were detected automatically. Writing to the config file also does not help to determine them.
in file configuration.yaml  :
light: !include light.yaml
sensor: !include sensors.yaml

in file light.yaml:
- platform: yeelight
    devices:
      192.168.1.220:
        name: Yeelight_Ceiling_650
        model: ceiling4    
        transition: 1000
        use_music_mode: True
        save_on_change: True
  1. I can’t adjust the display of the battery level in the xiaomi sensors. Earlier, I used the following code but in the new version get an error
in file sensor.yaml:

#sensor:
  - platform: attributes
    friendly_name: "Batteries"
    attribute: battery_level
    unit_of_measurement: "%"
    entities:
    - binary_sensor.wall_switch_both_158d0xxxxxxx
    - binary_sensor.cube_158dxxxxxxxx

3.I made several rooms on the main tab: corridor, study, nursery, bedroom, bathroom, living room. After I began to consistently fill these tabs with devices. I was unpleasantly surprised when I reached 4 tabs, because I saw a copy of tab 2 in it. I looked at tab 5 and saw a copy of tab 3 in it. When I try to delete tab 5, I am asked to delete tab 3. If I delete the contents of tab 5 then the contents of tab 3 are also deleted.

In the old version, there was a ui-lovelace.yaml file where you could manually edit the tabs and their contents. In the new version I did not find this. Is this feature removed?

Help me to understand. The system does not work and I do not know what to do.

Posts: 3

Participants: 3

Read full topic

Gauge name out of graphic

$
0
0

@novitibo wrote:

v 0.108 changed the position of name of the gauge in the frontend:
Now is not ok:Capture
It should look like this:
Capture1PNG

Posts: 2

Participants: 2

Read full topic

Viewing all 100408 articles
Browse latest View live


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