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

Issue with Multiscrape

$
0
0

I am trying to extract the propane usage from Amerigas web site.

Site login: AmeriGas Login

Loaded Dashboard page: SessionExpired

Using Chrome and inspect copy selector-…I have the following select value:…

#layoutDiv > main > div.container.pl-0.pr-0.pl-xl-3.pr-xl-3.pl-lg-3.pr-lg-3.pl-md-3.pr-md-3.pl-sm-0.pr-sm-0 > div:nth-child(2) > div.col-12.col-xl-6.col-lg-6.col-md-12.col-sm-12.pl-0.pr-0.pr-xl-3.pr-lg-3.pr-md-0.pr-sm-0 > div.col-12.bg-white.tankanddeliveries-padding.top-margin > div:nth-child(3) > div.col-12.col-xl-4.col-lg-4.col-md-12.col-sm-12.p-0.mt-3.EstimatedTankDiv > div > div.col-12.p-0.lblvalue-Estimatedtank

Here is my config file:

multiscrape:
  - resource: https://myamerigas.amerigas.com/Dashboard/Dashboard
    scan_interval: 3600
    headers:
      User-Agent: Mozilla/5.0
    form_submit:
      submit_once: True
      resource: https://myamerigas.amerigas.com/Login/Login?BrandId=002
      select: "#form-control-valid"
      input:
        email: farberm@me.com
        password: Bohica8899
    sensor:
        - select: "#layoutDiv > main > div.container.pl-0.pr-0.pl-xl-3.pr-xl-3.pl-lg-3.pr-lg-3.pl-md-3.pr-md-3.pl-sm-0.pr-sm-0 > div:nth-child(2) > div.col-12.col-xl-6.col-lg-6.col-md-12.col-sm-12.pl-0.pr-0.pr-xl-3.pr-lg-3.pr-md-0.pr-sm-0 > div.col-12.bg-white.tankanddeliveries-padding.top-margin > div:nth-child(3) > div.col-12.col-xl-4.col-lg-4.col-md-12.col-sm-12.p-0.mt-3.EstimatedTankDiv > div > div.col-12.p-0.lblvalue-Estimatedtank"
          unit_of_measurement: "%"
          name: Tankpercentage
        - unique_id: Tank_percentage

I am getting the following error however…

Error while setting up multiscrape platform for sensor
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 249, in _async_setup_platform
await asyncio.shield(task)
File “/config/custom_components/multiscrape/sensor.py”, line 56, in async_setup_platform
sensor_selector = Selector(hass, conf)
File “/config/custom_components/multiscrape/selector.py”, line 31, in init
raise ValueError(
ValueError: Selector error: either select, select_list or a value template should be provided.

Any help would be greatly appreciated as to what I am doing wrong?

1 post - 1 participant

Read full topic


Not able to set not-condition in automation

$
0
0

My aim was to set this condition to an automation:

‘’’’’’’’’’’’’’’’’’’’’
condition:

  • condition: device
    type: is_on
    device_id: 683b24df148811ebb2f409cf78486065
    entity_id: light.bad_decke
    domain: light
  • condition: not
    • condition: device
      device_id: c864becd148711eba159bf1de483ef7f
      domain: media_player
      entity_id: media_player.mini_bad
      type: is_playing
      ‘’’’’’’’’’’’’’’’’’’’’’’’

So that it runs only if the light is on but the player is NOT playing.

Not idea, if this is right, but I have no chance to test it as this YAML-configuration will not be saved.

After saving the YAML-config, it switches back to what I configured with the graphical interface.
But with the graphical config I cannot use NOT-condition.

What is my mistake?

1 post - 1 participant

Read full topic

Change light status with an automation, while lamp is cut off from current

$
0
0

I need help to automate my zigbee lights that are controlled by Sonoff ZBMini switches.

The ZBMini is a zigbee switch hooked to the already existing physical switch. It can toggle the lights by controlling the current. Since the ZBMini itself is always connected with HASS it is normally no problem, that my zigbee lights are not while cut off from current.

But in some cases were I want to automate the status of my light using “service: light.turn_on”, it is unreliable. I seems this caused by the fact that Home Assistant doesn’t know the correct status of the controlled lights. Switching a zigbee light of by the current, means the light can’t inform Home Assistant that it is off. If I correct the status of a light via the dashboard, everything works fine.

I already tried to solve this problem by automations, that turn zigbee lights off, after ZBMini cut off the current. But Home Assistant is still not changing the status of the lights. Here is one of my non-working automations:

alias: Doppel-Aus Sofa
description: ''
trigger:
  - platform: device
    type: turned_off
    device_id: 281e8a43d60f22a7fbd0d20b9527a149
    entity_id: light.sonoff_01minizb_bd57c124_on_off
    domain: light
condition: []
action:
  - type: turn_off
    device_id: 4d36eed262c9596c865310f69bf995f6
    entity_id: light.sofa_lampe_1_ff4aa9fe_level_on_off
    domain: light
mode: single

Since I can change the status of a light manually by the dashboard, it should be possible by an automation too. But how can I proceed?

Here are some more details:

  • Home Assistant 2021.12.3 running on an Intel NUC
  • Sonoff ZBBridge flashed with Tasmota 10.0.0.4
  • ZBMINI Switches with original firmware (no Tasmota)

I already searched for a solution in this forum. The best I could find was this: Sonoff-mini with a fixed state relay
But the solution there is for the Sonoff Mini (Wifi), not the Sonoff ZBMini (Zigbee). Even if it is possible to flash the ZBMini to Tasmota, it wouldn’t be possible OTA. Since my ZBMinis are already installed behind the physical switches, it would be complicated to flash them now.

1 post - 1 participant

Read full topic

Automate turn on switch if the temperature under 33

$
0
0

hey,

i want to do automation if the sensor under 33
its turn on automaticly at 6pm o’clock

its look like this but dont work for me.

 - id: boiler_on
   alias: boiler on
   trigger:
     - platform: numeric_state
       entity_id: sensor.boiler_temp_sonoff
       below: 33
   condition:
     condition: and
     conditions:
       - condition: time
         after: '18:00:00'
         before: '22:00:00'
   action:
     - service: notify.ggg
       data:
         message: "boiler turn on"
     - service: homeassistant.turn_on
       entity_id: switch.airwick_parantes_toilet

please help
thanks

1 post - 1 participant

Read full topic

Gauge Card colours moved

$
0
0

Up until a few days ago there used to be colours indicating the state of consumption. Now it seems the colour has moved to the right and it’s no longe in place.

Greenshot 2021-12-18 19.53.06

This is the code used and I haven’t changed it.

title: ENERGY
icon: 'mdi:flash'
cards:

- type: horizontal-stack
  cards:

  - type: gauge
    name: Watts
    unit: ' '
    entity: sensor.sensor_electricity_load
    min: 0
    max: 1000
    severity:
     green: 300
     yellow: 500
     red: 700

  - type: gauge
    name: Volts
    unit: ' '
    entity: sensor.sensor_electricity_voltage
    min: 210
    max: 260
    severity:
     green: 240
     yellow: 240
     red: 241

What could of cused this issue, and how can I fix it?
Thanks

1 post - 1 participant

Read full topic

Tellstick Duo and Nexa PIR LMDT-810 motionsensor

$
0
0

Hi!
Got my Tellstick Duo up and running with a few temp sensors and a nexa switch. It’s been working great with HASSIO. I’ve been struggling with adding a Nexa LMDT-810 motion sensor. It is supposed to pair with a selflearning receiver. When I start the pairing in the LMDT-810, I do get a call with house and unit ( using the nc core-tellstick 50801) . I used these data to set it up as a switch in the tellstick conf.
After that I was expecting to see the signals in (nc core-tellstick 50801) but I’m not getting any data from the motion sensor - it looks like it’s reacting (a red lamp in it blinks when motion is detected). Am I missing something? Do I need to tell the Tellstick something to receive the data? Or do I need to confirm “learning” with device for it to start transmitting.

Cheers
/Mikael

1 post - 1 participant

Read full topic

Cloud - Problem enabling

$
0
0

Im having problems enabling Cloud in HA, can anyone else. Getting this following error

Logger: homeassistant.setup
Source: components/cloud/__init__.py:233
First occurred: 6:43:27 PM (1 occurrences)
Last logged: 6:43:27 PM

Error during setup of component cloud
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 229, in _async_setup_component
    result = await task
  File "/usr/src/homeassistant/homeassistant/components/cloud/__init__.py", line 233, in async_setup
    await cloud.initialize()
  File "/usr/local/lib/python3.9/site-packages/hass_nabucasa/__init__.py", line 268, in initialize
    await self.auth.async_check_token()
  File "/usr/local/lib/python3.9/site-packages/hass_nabucasa/auth.py", line 167, in async_check_token
    if not self._authenticated_cognito.check_token(renew=False):
  File "/usr/local/lib/python3.9/site-packages/hass_nabucasa/auth.py", line 211, in _authenticated_cognito
    raise Unauthenticated("No authentication found")
hass_nabucasa.auth.Unauthenticated: No authentication found

1 post - 1 participant

Read full topic

Philips Hue Swutch V2

$
0
0

Hi there

I have got the Philips Hue Switch V2 and have connected it to Zigbee2mqtt and it works fine.

However when I hold the up button I expect the action on mqtt payload to be up_hold. However this is not the case as it produces up_press and then up_hold.

Is this something normal? Or do I have to do some settings etc?

Thank you.

2 posts - 2 participants

Read full topic


FreeNas Monitor

$
0
0

Hi there,

I have been following along with posts on another thread and I have found my self stuck on monitoring pool status. What I currently have is below. I am also quite confused on what /id/0 means I can’t seam to find out how to know what id I need. I have tried 0,1,2. I only have one volume currently on my nas.
When I add to the dashboard I get sensor.nas_pool_pct_used unavailable. If I use the entity sensor.nas_pool I get 0 back on my gauge card.

#Storage percentage
  - platform: rest
    name:  nas_pool
    resource: http://host/api/v2.0/pool/id/0
    username: XXXX
    password: XXXX
    headers:
      Content-Type: application/json
      User-Agent: Home Assistant
    value_template: '{{ value_json["status"] }}'
    json_attributes_path: '$.topology.data[0].stats'
    json_attributes:
      - allocated
      - size
    scan_interval: 1800
  - platform: template
    sensors:
      nas_pool_pct_used:
        friendly_name: "% Used"
        value_template: ' {{ (state_attr("sensor.nas_pool", "allocated") / state_attr("sensor.nas_pool", "size") * 100) | round(1) }} '
        unit_of_measurement: "%"

1 post - 1 participant

Read full topic

Time zone map showing Amsterdam, but time zone is America/New York

$
0
0

I’m running HA OS on a raspberry pi. My time zone is set to America/New York with the right elevation setting.

However on the map in General Configuration the marker is showing me in Amsterdam. I can’t figure out how to adjust this.

When I go to the developer tools and run this, everything looks correct:
{{ utcnow().tzinfo }}
{{ now().tzinfo }}
{{ now().astimezone().tzinfo

UTC
America/New_York
EST

However, when I look at the Sun entity it is showing the incorrect information (e.g. says sun will rise in 13 hours which is like 3am ET).

It appears something is out of sync. Any ideas how to troubleshoot/resolve?

1 post - 1 participant

Read full topic

Zemismart Zigbee Roller Shade - Config Help

$
0
0

Hi All,

I got the " Zemismart Tuya Zigbee 3.0 Roller Shade Motor with Battery For 38mm Tube Smart Life APP Control ALexa Google Home Control" from Zemismart directly on their website.

I was able to test the motor and pair to HA, but I’m having some issues setting the min/max and puling state.

Here is what I see in HA:

The up and down arrows work great, but there is no max/min…How can I set that?

Also, whenever I use the up or down and hit stop I get this error:
Failed to call service cover/stop_cover. '>' not supported between instances of 'NoneType' and 'int

Here is a picture of the reconfiguration device screen as well, I can’t figure out how to access this attribute of current lift %.

Also in debug, it says there are 11 supported features, but I can’t seem to find them!

image

Thanks for the help!

1 post - 1 participant

Read full topic

24h Average sensor incorrect?

$
0
0

Hello all,

I’m experiencing something weird.
Recently, I hacked an IKEA PM2.5 sensor by adding an ESP8266 and added it to HA via ESPHome.
So far so good. It works as expected.

Now, I tried to add a 24h average sensor for it. I installed Average Sensor from HACS and added the sensor to my HA config.yaml.
It came up and seems to work fine, but then I noticed this: During the time I was away from home, the sensor value went down to 10. Average was 70. The average should be dropping hard, but strangely enough, it stays sortoff stable. And then hours later, it starts dropping off hard, while the primary sensor value has remained relatively constant all that time.

Am I overseeing something? Or misunderstanding the use of the ‘Average Sensor’?
Thanks!



1 post - 1 participant

Read full topic

Synching two radiators to one thermostat

$
0
0

I have managed to get the automation to trigger on thermostat change, but the execution fails with this error:
“Error rendering data template: UndefinedError: ‘climate’ is undefined”
It relates to the temperature line in automations.yaml:

- id: '1639835751356'
  alias: Termostatändring köket
  description: ''
  trigger:
  - platform: state
    entity_id: climate.popp_termostat_17_vanster_2
    attribute: temperature
  condition: []
  action:
  - service: climate.set_temperature
    target:
      entity_id: climate.popp_termostat_16_hoger
    data:
      temperature: "{{ float(climate.popp_termostat_17_vanster_2) + 1 }}"
  mode: queued
  max: 10

The objective is to set thermostat 16 to the value of thermostat 17 +1 deg C.
Can you help?

Thanks,
Fumble

1 post - 1 participant

Read full topic

Approaches to controlling boiler temperature (not simple ON\OFF)

$
0
0

Hi!

I’m planning some gas boiler\heater automation for a house, it’s a boiler that support OpenTherm protocol which means that I can not only turn it on or off but also set target coolant temperature.

The problem is that most information I can find is about how to basically setup Generic Thermostat in one way or another, meaning that everyone focuses on just turning it on or off, not adjusting it’s target temperature.

In my mind there should be better ways than just setting it to “slightly above target temperature”, because this might not quite work correctly for larger houses and it will work very differently in summer and winter, so it should probably also take external temperature into account.

Are there any go-to algorithms or approaches at achieving this? Or should I just come up with something on my own? I mean I can think of some way to calculate required target coolant temperature based on current temperature, desired temperature and outside temperature. But I would be surprised if this problem was not tackled by someone else before.

I’m planning to use a Wemos D1 board with OpenTherm adapter and Tasmota. It’s already soldered, flashed and working, so it’s just the automation part that I’m looking into.

I am also thinking about keeping it ‘ON’ most of the time, and lowering it’s temperature instead. Because if it turns off entirely during winter coolant gets quite cold before the temperature in the house drops. So by the time boiler has to turn on it takes it a long time to heat it back up OR it will have to work at 100% power to heat everything up again, which is not ideal either, it can damage pipes for one.

1 post - 1 participant

Read full topic

Web Trigger Button With Dynamic Input

$
0
0

I have a web trigger in my configuration like this…

rest_command:
  kitchen_c4_t1:
    url: 'http://myurl.duckdns.org:52883/announce?message=1+2+3+4+5+6&submit_button_type=Kitchen'

and then I have a button setup like this:

name: Kitchen C4
tap_action:
  action: call-service
  service: rest_command.kitchen_c4_t1
type: button

And it works great but instead of having to create a new button for every message I want to submit is there a way to have a card with an input box and then it dynamically inserts it into the URL? So if I entered “hello there” it would have the URL set as “http://myurl.duckdns.org:52883/announce?message=hello+there&submit_button_type=Kitchen

1 post - 1 participant

Read full topic


Notifications for Android TV not displaying .jpg

$
0
0

The notification on my TV no longer displays the jpg like it used to. There have been no changes to the automations. I have the most recent (2021.12.3) HA. The text displays fine, the automation creates a valid image, and I can access it via Samba. Any ideas?

Here’s the code:

alias: Front Door - Nest - Person
description: Display a photo and a message on the TV when someone is on the front porch
trigger:
  - platform: device
    device_id: e4af7bc214517d8ff68fd166f55b5861
    domain: nest
    type: camera_person
condition:
  - condition: state
    entity_id: media_player.sony_bravia_tv
    state: playing
action:
  - service: camera.snapshot
    data:
      filename: /config/tmp/person_at_front_door.jpg
    target:
      entity_id: camera.front_door
  - service: notify.sony_livingroom
    data:
      message: Someone is on the front porch.
      title: Front Door
      data:
        duration: 10
        font_size: large
        position: top-right
        color: grey
        transparency: 25%
        file:
          path: /config/tmp/person_at_front_door.jpg
mode: single


1 post - 1 participant

Read full topic

Multiple triggers at potentially the same time

$
0
0

I’m trying to write an automation that will allow the user to set times for a thermostat to get temperature changes throughout the day, with different times for work and non-work days. I have the workday state sensor configured, which gives me a true/false value for being a workday, but I’m struggling with how to set up the time triggers to distinguish between them.

I can set triggers for the user’s times, but if they use the same time for both work and non-work days the automation fails with a “Stopped because only a single execution is allowed at <date/time>” error. Is there a way to conditionally set triggers based on a state value? Or to set two triggers, with different IDs but the same time, as separate triggers? Since this is user supplied data I need to create the triggers and trigger IDs as separate entities with their own inputs and have no way to know if they happen to use the same time.

Any ideas, suggestions or hints would be welcome.

1 post - 1 participant

Read full topic

Xiaomi miio device token extraction simplified

$
0
0

having at least 5 devices with Xiaomi miio that require token extraction, and having used in the past the android emulator memu, fricking around with xiaomi home app versions to extract the miio2.db file, copy to my laptop then run an sql expression to extract the token of my miio devices

this morning i stumbled across this little Gem, and i was up and running with a token extraction once i installed the windows version in around 2-3 minutes

1 post - 1 participant

Read full topic

How to delay an automation after it triggers the first time

$
0
0

Good Evening, I have made automation for my unifi protect doorbell, when motion is detected it sends an announcement to amazon Alexa. The only issue I am having is that the automation is triggering multiply times. Alexa says “someone is at the front door” three times on one person at the front door. Is there a way to set a delay from the first time it triggers to the next time it triggers? Here is my current code.

  alias: Someone is at the front door
  description: ''
  trigger:
  - platform: state
    entity_id: binary_sensor.motion_1_doorbell
    for:
      hours: 0
      minutes: 0
      seconds: 0
  condition:
  - condition: trigger
    id: ''
  action:
  - service: notify.alexa_media_dinning_rm_echo_dot
    data:
      message: Someone is at the front door.
      target: notify.alexa_media_dinning_rm_echo_dot
      data:
        type: tts
  mode: single

Thanks,
Justin

1 post - 1 participant

Read full topic

Add condition, in automation, to ignore state "503"

$
0
0

Hey,

I have an automation, using scrape sensors, that will send notifications every time there’s software updates inside the threads of a forum.

The problem is that in different, and undisclosed, periods of time, the forum will be offline while the adms are doing changes/updates/backups/etc., and I will receive the change of state to “503” as a false notification of update.

Any ideia if there’s a way to add a condition to ignore a specific state?

1 post - 1 participant

Read full topic

Viewing all 95493 articles
Browse latest View live


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