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

RESTful sensor to read data from Thingspeak

$
0
0

@Albertowue wrote:

Hi everyone, I need your help for a configuration.
I have a device that sends some data to Thingspeak and I would like to read this data and display it on Home Assistant.

The best way to do this is to create a sensor on the REST platform.

Through the request

https://api.thingspeak.com/channels/xxxxxx/feeds/last.json?api_key=myapikey

I get this result:

{"created_at":"2020-02-17T15:50:54Z","entry_id":71344,"field1":"16.45000","field2":"63.05078","field3":"986.28571","field4":"3.94000"}

field1 temperature, field2 humidity, field3 pressure and field4 battery.

How can I create the sensor? I would like to optimize the process, one request to populate 4 different sensors.

Posts: 10

Participants: 2

Read full topic


New TCP Sensor for Meteohub Temperature

$
0
0

@scriven33 wrote:

I am trying to extract information from my Meteohub weather station - at the moment to specifically show the external temperature.

The URL to query is this:
http://192.168.1.123/meteolog.cgi?type=xml&quotes=1&mode=data&sensor=th0

and it returns this result:

<TH date="20200217161838" id="th0" temp="8.9" hum="80" dew="5.6" lowbat="0" />

What I am looking to collect is the temp.

So I attempted to create a new sensor using the TCP platform as below, but it isn’t working.

  • platform: tcp
    name: Outdoor Temp
    host: 192.168.1.123
    port: 80
    payload: /meteolog.cgi?type=xml&quotes=1&mode=data&sensor=th0
    timeout: 6
    value_template: “{{ value_json[‘TH’][‘temp’] }}”
    unit_of_measurement: C

Any suggestions on what I have done wrong please?

Posts: 1

Participants: 1

Read full topic

Like to turn off logging for components/stream/worker.py

$
0
0

@Klangen82 wrote:

I have some generic cameras setup in Hassio 0.105.4 (had it prior this version) and they are working fine but I get multiple errors like this:

SEI type 5 size 664 truncated at 160
5:32 PM components/stream/worker.py (ERROR) - message first occurred at 5:31 PM and shows up 17 times
SEI type 5 size 424 truncated at 160
5:32 PM components/stream/worker.py (ERROR) - message first occurred at 5:30 PM and shows up 1417 times
SEI type 5 size 672 truncated at 160
5:32 PM components/stream/worker.py (ERROR) - message first occurred at 5:32 PM and shows up 3 times
SEI type 5 size 616 truncated at 160
5:32 PM components/stream/worker.py (ERROR) - message first occurred at 5:31 PM and shows up 11 times
SEI type 5 size 416 truncated at 160
5:32 PM components/stream/worker.py (ERROR) - message first occurred at 5:30 PM and shows up 139 times

I have triyed to change the logger to

logger:
  default: info
  logs:
    homeassistant.components.camera: critical
    homeassistant.components.generic.camera: critical

But this is not helped, have tried other thing as well but never get it to not log these errors. I understand that there is something wrong with the stream and that FFmpeg probably have some issues but as it is working fine, I have no trouble with this not being in the log. Right now, I get a couple of error per second and it´s hard to see when and if I would get other errors that have nothing to do with the streaming component.

Any help how to get rid of these would be very much appreciated!

Posts: 7

Participants: 3

Read full topic

Homekit issue with contact sensor

$
0
0

@fgonza2 wrote:

Hi,

I have a working zwave contact sensor. It is a linear nortek WADWAZ1 sensor. I have two of those on my installation. I also have them labelled as device_class: door in my config.

For some reason one of them homekit doesnt pickup (but still looks and works fine within HA). I found that when i remove the device_class: door it starts working in homekit but it picks it up as an occupancy sensor which is inconvenient. Any ideas if this is a bug or something? the other identical sensor works well and it is recognized by homekit as a door as expected.

any ideas?

Posts: 1

Participants: 1

Read full topic

Help - How to make a dynamic list of integers? Variable not working?

$
0
0

@mmiller7 wrote:

I’m trying to make a notification bot for when things happen (e.g. laundry finishes) that any of the authorized telegram users can “request” to be notified (so I don’t have to write every possible combination of automatons, duplicated for every possible user).

I am using hass-variables to successfully store a comma-separated list of people who have requested a notification in a variable:

variable:

  # Stores list of Telegram IDs to send specified notification to
  telegram_washer_completed:
    value: ''
    restore: true
  telegram_dryer_completed:
    value: ''
    restore: true

automation:
  # Washer Notifications

  - alias: 'Telegram bot request washer completed alert'
    trigger:
      - platform: event
        event_type: telegram_command
        event_data:
          command: '/laundry_notify_washer_completed'
    action:
      - service: variable.set_variable
        data_template:
          variable: telegram_washer_completed
          # This mess checks if the value is empty ('')
          # If it is empty, it just stores
          # Else, if it has data in it append ", <new_data>"
          value: >-
            {% if states.variable.telegram_washer_completed.state == ''%}
              {{ trigger.event.data.user_id }}
            {%else%}
              {{ states.variable.telegram_washer_completed.state }}, {{ trigger.event.data.user_id }}
            {%endif%}
      - service: telegram_bot.send_message
        data_template:
          target: '{{ trigger.event.data.user_id }}'
          message: 'Ok, I will notify you next time the washer has completed.'

This seems to work reasonably well and the IDs are stored in the variable separated by commas as suggested by the syntax of the Telegram integration

data_template:
        target: [CHAT_ID1, CHAT_ID2]

My code does seem to work for 1 single ID in the variable, but if there are 2+ IDs in the variable it gives me errors when it executes

  - alias: 'Telegram bot that tells when washer is done'
    trigger:
      - platform: state
        entity_id: variable.washer_state
        to: 'Completed'
    condition:
      condition: template
      value_template: '{{ states.variable.telegram_washer_completed.state != "" }}'
    action:
      - service: telegram_bot.send_message
        data_template:
          target: '[ {{ states.variable.telegram_washer_completed.state }} ]'
          message: 'The washer is finished running.'
      - service: variable.set_variable
        data:
          variable: telegram_washer_completed
          value: ''

But when it runs with more than one user’s ID in the variable, I get this error:

2020-02-17 11:48:27 ERROR (MainThread) [homeassistant.components.automation] Error while executing automation automation.telegram_bot_that_tells_when_washer_is_available. Invalid data for call_service at pos 1: expected int @ data['target'][0]

Help?

Posts: 17

Participants: 3

Read full topic

Set Aqara Smart Plug Power Memory State?

$
0
0

@green_onion wrote:

Hi, I just picked up a Aqara Smart Plug but out of the box, it has the last memory state setting to have the plug powered off when an power outage occurs (or if it’s unplugged and plugged back in the power outlet)

Question: Is it possible to set the memory state to set the device to turn back on when there is a power outage via Zigbee?

I know the application can do it based off a reddit post: https://imgur.com/a/mBz1MQB but I don’t own the Aqara gateway myself.

Thanks

Posts: 2

Participants: 2

Read full topic

How to create sections in lovelace

Homematic devices not visible under overview or devices

$
0
0

@siegenthaler wrote:

Hello
Under Entities I see my homematic devices and can switch the on and off.
But I do not see them under devices nor in the overview screen.
(Other devices, such as sonos and Philips I see under Overview)
Thanks!

Posts: 1

Participants: 1

Read full topic


How do zones work in this case?

$
0
0

@Argo wrote:

Hey there!
I need Home Assistant to know that I am getting close to home, so I’ve made one more zone which is pretty big.

But I get strange behavior. When I am coming home, Home Assistant firstly thinks I am home, and only then bigger zone “pre_home”.
Why does it work like that?

Posts: 3

Participants: 2

Read full topic

Iframe URL from attribute entity

$
0
0

@joseska wrote:

Hi… we are trying to use an attribute of one entity for using as url of iframe card… I have tried different ways but not work:

  • url: state_attr(‘states.sensor.nodered_f0e19ba8_039c98’, ‘noticia1’).topic
  • url: {{ state_attr(‘states.sensor.nodered_f0e19ba8_039c98’, ‘noticia1’).topic }}
  • url: >
    {{ states.sensor.nodered_f0e19ba8_039c98.attributes.noticia1.topic }}

all of this not work…

any idea???
thanks…

Posts: 3

Participants: 2

Read full topic

How to manipulate/add RFXtrx RFYcommands?

$
0
0

@IbizaMan wrote:

How can I change the RFY commands sent to the RFXtrx Hub module? I’m trying to control some Somfy blinds but can’t figure out how to manipulate the commands sent out by the Cover component.

It seems like HA only supports Open, Close and Stop commands. Is it possible to manipulate the commands sent out to the RFXtrx Hub?

This is the command I want the Hub to send out:

RFY command: 0C 1A 00 0E 0B BB AA 02 11 00 00 00 00

Posts: 2

Participants: 2

Read full topic

Help getting TTS working true Google Homemini

$
0
0

@Canedje wrote:

Hello,

I do try to let my Google home do TTS from a node-RED que.
My google home is installed in Home Assistent.
The next lines are in config/configuration.yaml:

#Text to speech

tts:

  • platform: google_translate

The next node-RED que:

Knipsel2

I tried in the google home mini in the overview to TTS some text.
If I do switch on Google home I do hear a beep, so there is a possibility to switch on the Home mini.
but i do no hear any tekst?

what am I doing wrong?

EDIT: I did get it working already!
There was an error in the configfile

Posts: 1

Participants: 1

Read full topic

Show last time it rained

$
0
0

@giovanni wrote:

Hi,
I would like to show on lovelace the date and time of the last time it rained using weather.home entity.
I have been looking in the forum for some solutions, but they only show the last time a sensor changed state. Anybody can suggest a solution?
Thank you!

Posts: 2

Participants: 2

Read full topic

Anyone got caller ID working in the UK?

$
0
0

@dapper2490 wrote:

Anyone else got this working? I’ve tried three different USB modems (all Hayes compatible) but with no success. The one that partially worked was a USR5637 but played fax tones down the line and didn’t show caller ID. Anyone with a solution or a working USB modem in the UK? Thanks!

Posts: 1

Participants: 1

Read full topic

Multi sensor using same MQTT topic

$
0
0

@gigitek wrote:

I’m having trouble setting up two sensors which read the value from same MQTT topic.
Data must be interpreted based on a parameter, e.g type
The HW sensor/device provides temperature and humidity on the same topic, something like:

type=0x01 unit=0 valueF=24.75

If type is 1 => valueF is the temperature, if type is 0x05 => valueF is the humidity
In my configuration.yaml I tried the following, but with no success:

sensor:
  - platform: mqtt
    state_topic: "/response/node/7/class/sensor/status"
    name: "Temp"
    unit_of_measurement: '°C'
    value_template: "{% if value.split(' ')[0] == \"type=0x01\" %}{{ value.split(' ')[2].split('=')[1]  }}{% else %}{{ states('sensor.laststate') }}{% endif %}"
  
- platform: mqtt
    state_topic: "/response/node/7/class/sensor/status"
    name: "Humidity"
    value_template: "{% if value.split(' ')[0] == \"type=0x05\" %}{{ value.split(' ')[2].split('=')[1]}}{% endif %}"

Neither of the above is working correctly.
I tried with an else branch in order to keep the last value, because it was not working correctly without it, e.g. empty value in the UI

Posts: 3

Participants: 3

Read full topic


CS2531 Zigbe2mqtt not able to setup

$
0
0

@christian.huppertz wrote:

Hey everybody,

im currently trying to “listen” to my Hue devices at home (especially the smart buttons) using a CS2531 USB dongle. I am running HA in a python virtual machine linked to systemd to autostart. The zigbee2mqtt is running on the same device (Pi) (later also with systemd, but currently not).

I installed the Zigbee2mqtt component following this guide:

Afterward, I followed the zigbee2mqtt guide for Home Assistant:

However, I do have problems understanding the part that has to be done in HA. Where do I define the devices that should be listend to? Or is this done by the zigbee2mqtt?

My configuration.yaml file of zigbe2mqtt looks like this:

# Home Assistant integration (MQTT discovery)
homeassistant: true

# allow new devices to join
permit_join: true

# MQTT settings
mqtt:
  # MQTT base topic for zigbee2mqtt MQTT messages
  base_topic: zigbee2mqtt
  # MQTT server URL
  server: 'mqtt://localhost'
  # MQTT server authentication, uncomment if required:
  # user: my_user
  # password: my_password

# Serial settings
serial:
  # Location of CC2531 USB sniffer
  port: /dev/ttyACM0

Info: The zigbee2mqtt is running on the pi as HA

My logs look like this:

> zigbee2mqtt@1.10.0 start /opt/zigbee2mqtt
> node index.js

zigbee2mqtt:info  2020-02-17 19:58:45: Logging to console and directory: '/opt/zigbee2mqtt/data/log/2020-02-17.19-58-45' filename: log.txt
zigbee2mqtt:info  2020-02-17 19:58:46: Starting zigbee2mqtt version 1.10.0 (commit #8df6be8)
zigbee2mqtt:info  2020-02-17 19:58:46: Starting zigbee-herdsman...
zigbee2mqtt:info  2020-02-17 19:58:48: zigbee-herdsman started
zigbee2mqtt:info  2020-02-17 19:58:48: Coordinator firmware version: '{"type":"zStack12","meta":{"transportrev":2,"product":0,"majorrel":2,"minorrel":6,"maintrel":3,"revision":20190608}}'
zigbee2mqtt:info  2020-02-17 19:58:48: Currently 0 devices are joined:
zigbee2mqtt:warn  2020-02-17 19:58:48: `permit_join` set to  `true` in configuration.yaml.
zigbee2mqtt:warn  2020-02-17 19:58:48: Allowing new devices to join.
zigbee2mqtt:warn  2020-02-17 19:58:48: Set `permit_join` to `false` once you joined all devices.
zigbee2mqtt:info  2020-02-17 19:58:48: Zigbee: allowing new devices to join.
zigbee2mqtt:info  2020-02-17 19:58:48: Connecting to MQTT server at mqtt://localhost
zigbee2mqtt:info  2020-02-17 19:58:48: Connected to MQTT server
zigbee2mqtt:info  2020-02-17 19:58:48: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online'
zigbee2mqtt:info  2020-02-17 19:58:48: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"version":"1.10.0","commit":"8df6be8","coordinator":{"type":"zStack12","meta":{"transportrev":2,"product":0,"majorrel":2,"minorrel":6,"maintrel":3,"revision":20190608}},"log_level":"info","permit_join":true}'

Given, that I understand it correctly this is telling me, that I should set permit_join = true which I have.

So, how do I add devices to zigbee2mqtt and then send publish a mqtt message to HA?

I really struggle with this whole exercise :frowning:

I hope somebody can help me figure out what I have to do in order to make this working. Thank you!

Cheers,
Christian

Posts: 3

Participants: 3

Read full topic

Making a xiaomi PIR sensors a super sensor

$
0
0

@pergola.fabio wrote:

guys, anyone tried this?

can it work? looks simple but if it works, its much better
i do understand the code, but what i dont understand, if motion is detected in deconz already, why/how should it send motion detection again? does deconz actually receive a new signal after 6 seconds?
if so, why is there no option in deconz to configure motion off after 5/6 seconds?

Posts: 1

Participants: 1

Read full topic

How to configure a Google Home Mini?

$
0
0

@WoJWoJ wrote:

I have two Google Home Mini devices, connected and operational.

I would like to use them in HA as speakers to either send some messages via tts or stream some internet radio using it as a media player.

I found examples on how to use them in both cases but for some reason I cannot find out how to configure them so that HA sees them as media_player.office and media_player.salon.

They are on the same network as HA but they do not show up in the list of devices (there can be numerous reasons for that) and therefore I wanted to hard wire them in the configuration.

I found one place whihc seems to be relevant: the advances configuration for Google Cast (https://www.home-assistant.io/integrations/cast/#advanced-use). The proposed entry is

# Example configuration.yaml entry
cast:
  media_player:
    - host: 192.168.1.10

How does this map with a media_player.office entry? Where can I say that 192.168.1.10 is the Google Home associated with office?

Posts: 7

Participants: 2

Read full topic

Cameras on HADash Not Working

$
0
0

@BAMoore91 wrote:

I know there are what seems to be 1000’s of forums on getting cameras to work with HADash, I’ve tried everything I can think of, but cannot get it to work. The cameras DO work on the lovelace panels, but won’t stream on the Dash Panels.
I’m using “generic” camera with RTSP stream. Can anyone give me a quick rundown on how they got their cameras to work properly on their dash?
Thanks

Posts: 1

Participants: 1

Read full topic

Single view only URL

$
0
0

@Sylvain wrote:

Hi,

First off, apologies, because this must have been asked tons of times before. My google-fu skills seem not to be up for the challenge though…

What I aim to do is very simple (I hope); I want to display on a small tablet mounted in a room a single lovelace view to control a number of devices in that room. So no left-hand side bar, no tabs, no nothing just the single view.

Is there some URL options that I can use for this or something? e.g, point the browser on the tablet to https://my.local.IP/OnlyShowThisView/MyView or https://my.local.IP/lovelace/myView?KioskMode or something?

many thanks in advance for any help!

Cheers

Sylvain

Posts: 1

Participants: 1

Read full topic

Viewing all 105688 articles
Browse latest View live


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