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

Can I use a service call to switch between light and dark mode introduced in 0.114?

$
0
0

I am running 0.114.0b2. It is great to see that finally a dark theme is now built into the UI. Currently I don’t have any themes setup configuration.yaml.

The user interface has options for “Auto” “Light” and “Dark”. I suppose auto is only for android, Windows 10 or an operating system that has a toggle for dark mode. However I don’t have any android devices that switch into dark mode, and my linux desktop doesn’t have any way of telling Chrome to enter a dark mode, so auto will be always useless for my setup.

Is there a way, to use frontend.set_theme to get the browser to switch into dark or light mode so I can build it into an automation to do something like switch into dark mode between sunset and sunrise? I think the way the service call is implemented it can only tell the light or dark mode be a certain previously installed custom theme, not instruct the browser to switch between light and dark.

Alternately does anyone simply have the yaml configuration of the default “dark” theme that exists in polymer that I can paste into the themes: section of frontend:. I think the default dark theme looks good enough and would like to set that as custom theme.

1 post - 1 participant

Read full topic


Is there a preferred option between these 2 templates?

$
0
0

performing a major checkup of the setup, I was wondering if any preference exists for either of these condition template formats for scripts and automations, or even template binary_sensors :

{{not is_state('input_select.activity','Naar bed')}}

{{states('input_select.activity') != 'Naar bed'}}

same applies for the positive version of these of course…

thinking system reliability, speed, complexity for the backend etc etc

thanks for having a look

1 post - 1 participant

Read full topic

Casting playlists (from Emby, YouTube) to Chromecast

$
0
0

I know how to set up a service call to cast a single item (video from Youtube or Emby server) to a Chromecast, but I totally do not get how to cast a whole playlist and have Chromecast play all the items. I tried both media_player.play_media with YT playlist ID and media_extractor.play_media service with the full playlist URL; in both cases, Chromecast plays just the first playlist item.

Could you guys please help me get unstuck? Thanks!

1 post - 1 participant

Read full topic

Xiaomi Vacuum Roborock - DND on/off script?

$
0
0

I am trying to create Do Not Disturb on/off scripts for my Roborock vacuum. Is there a way to change the Do Not Disturb mode through scripts or automations?

I am trying to do something like this, but it obviously doesn‘t work that way:

vacuum_dnd_on:
  sequence:
    - service: vacuum.send_command
      data:
        entity_id: vacuum.xiaomi_vacuum_cleaner
        command: do_not_disturb
        params: ['on']

vacuum_dnd_off:
  sequence:
    - service: vacuum.send_command
      data:
        entity_id: vacuum.xiaomi_vacuum_cleaner
        command: do_not_disturb
        params: ['off']

And these are all the attributes that hassio shows me when I go into developer tools:


fan_speed_list:
  - Silent
  - Standard
  - Medium
  - Turbo
  - Gentle
battery_level: 100
battery_icon: 'mdi:battery-charging-100'
fan_speed: Silent
do_not_disturb: 'off'
do_not_disturb_start: '07:00:00'
do_not_disturb_end: '06:59:00'
cleaning_time: 71
cleaned_area: 42
cleaning_count: 635
total_cleaned_area: 7622
total_cleaning_time: 8515
main_brush_left: 284
side_brush_left: 184
filter_left: 134
sensor_dirty_left: 14
status: Charging
clean_start: '2020-08-07T12:15:08'
clean_stop: '2020-08-07T13:27:13'
friendly_name: Xiaomi Vacuum cleaner
supported_features: 14204

In the app on my phone I have a switch to turn DND off and on manually, I want to achieve the same thing in Home Assistant.

Any idea how to do this?

1 post - 1 participant

Read full topic

Forked-daapd and media player services

$
0
0

I have Forked-Daapd setup and working. I can control speakers in zones and playlist functionality. I can even do TTS to the main forked-daapd media player entity. However, the TTS is very slow and regardless what speakers I have enabled or volumes they are set at, it always sets all zones to 80%, enabled all zones, then speaks to them but anywhere from 1-2 minutes after I do TTS. I also cannot send a media_player.play_media service command to an individual zone. Nothing happens. No error in forked-daapd or in HA. If I do the same service command to the main forked-daapd zone (the system entity) all playing zones immediately stop playing and in the forked-daapd web interface I see all zones join, all volumes go to 80%, but then nothing happens. There’s no audio. Then after a period of time, forked-daapd goes back to playing the queue. These same services all work on my Sonos speakers (TTS and volume set and play_media). From what I can tell, I should be able to play to a forked-daapd zone individually.

Has anyone gotten forked-daapd working fully with respect to playing to an individual zone through HA services?

1 post - 1 participant

Read full topic

Nested Serial Json

$
0
0

Currently, I am working on having serial communication between an RPI4 and Arduino Mega.

If I send an un-nested JSON message to the Pi I can see it and read it and assign it to a sensor with no issue. but as I have multiple devices I’ve decided to send nested JSON messages.

my current output is:
Capture
b1 = unavalible

Any ideas as to why the sensor data is not displaying? if I receive it unnested it is fine, just having troubles working out the correct formating for nested serial

my template looks like:

Imitate available variables:
{% set value_json = {"nest1":{"b1":36,"b2":51.51},"nest2":{"s1":-0.13,"s2":20}
}%}


'{{ value_json['nest1']['b1'] }}'
'{{ value_json['nest1']['b2'] }}'
'{{ value_json['nest2']['s1'] }}'
'{{ value_json['nest2']['s2'] }}'

which gives out:

'36'
'51.51'
'-0.13'
'20'

when I look at my Developer Tools states I can see the sensor as sensor.serial_sensor which is reading state:

{"nest1":{"b1":36,"b2":51.51},"nest2":{"s1":-0.13,"s2":20}

Displaying nicely in the attributed collum as:

nest1:
b1: 36
b2: 51.51

nest2:
s1: -0.13
s2: 20

Which is great because its there!

With this I’m trying to use the sensor template as follows:

sensor:
  - platform: serial
    serial_port: /dev/ttyACM0
    baudrate: 9600

  - platform: template
    sensors:
      b1:
        friendly_name: "b1"
        unit_of_measurement: "°C"
        value_template: "{{ state_attr('sensor.serial_sensor', value_json['nest1']['b1']) }}"
      b2:
        friendly_name: "b2"
        unit_of_measurement: "pH"
        value_template: "{{ state_attr('sensor.serial_sensor', value_json['nest1']['b2']) }}"
      s2:
        friendly_name: "s2"
        unit_of_measurement: "mg/L"
        value_template: "{{ state_attr('sensor.serial_sensor', value_json['nest2']['s2']) }}"

as per:


Cheers

1 post - 1 participant

Read full topic

Lovelace Fan Control Entity Row Error

$
0
0

I’ve installed https://github.com/finity69x2/fan-control-entity-row using HACS


I have the Lovelace UI Resources Set exactly where the JS file is located

But i still get this error
2

My Card Config

entities:
  - entity: switch.sonoff_10003085bd
  - entity: light.sonoff_1000994e05_1
  - entity: fan.sonoff_1000994e05
    type: 'custom:fan-control-entity-row'
show_header_toggle: true
title: Office
type: entities

1 post - 1 participant

Read full topic

Completely defeated by Stream component

$
0
0

For the first time I feel completely defeated in my attempt to get a Home Assistant component working. I wanted to try recording from my camera, which currently works fine from the Lovelace UI, showing both the static image placeholder and the RTSP stream successfully. First, I just tried running the camera.record service manually. HA says the service isn’t found (wha…? how can it not find the service?). Then I read that camera.record is dependent on having the Stream component installed, not that anything was mentioned about that. So I tried installing Stream. No good, wants me to upgrade my version of ffmpeg. Ok, ffmpeg updated. Tried again. No good, complains about component av == 6.1.2 failing. I read every thread I could find on that topic, tried every fix suggested, and after hundreds of updates, all that was accomplished was that Home Assistant would now freeze permanently during initialization if Stream is included. I hate to give up, but it seems like Stream just has too many interlocking dependencies to untangle. Why is it needed at all when the UI can already display the RTSP stream?
Any clues greatly appreciated.

1 post - 1 participant

Read full topic


Zigbee ikea pairing questions

$
0
0

So i finaly got my conbee 2 up and running in docker, seems quite nice.

I have some questions regarding pairing ikea devices like the led driver and on/off switch. I currently have paired the led driver directly with conbee zha and it works great, now i want to pair a on/off switch directly to the led driver, not to the conbee, my mission is to have a on/off switch talking with the driver withoit the need for a controller.

It seems i have a hard time pairing anything to the driver after its paired to the controller, is this intended behavior?

If i pair the switch to the conbee network by using the pair via this device, is it drectly paired to the led driver then?

1 post - 1 participant

Read full topic

Arduino analogue inputs as switches?

$
0
0

Home assistant running via docker on a synology nas with an arduino running Firmata firmware plugged in via USB.

The board is working fine and while i don’t have any devices pluged in on the digital io i can see it working as i can toggle the LED for pin 13.

My issue is the sensors, i want to have it read 2 security sensors i have that happen to be wired back to this spot. The sensors are wired into a 12v universal relay, pin 30 is connected to A1, pin 87a connected to GND off the aurdino, pin 87 +5V off the aurdino. I can see pin 30 switching from 0 to 5V with a multi meter. But it doesn’t seem to update most of the time in home assistant.

I had assumed i would be able to use numeric_state and above say 500 in an automation as a trigger but so far zero love.

Does the firmata firmware have some type of smoothing on its inputs?
Any advice?

1 post - 1 participant

Read full topic

Help Request - Setup of Fan via RFXCOM / lighting4 (PT2262)

$
0
0

Hi,

I currently have an OpenHab + Node Red installation which I’m migrating over to HA + Node Red. In principle, HA abstracts the devices, state, etc whilst NR executes complex logic and implements tricky/non-standard interfaces.

I have some fans which I control via an RFXCom interface. The fans are controlled as Lighting4/PT2262 devices, and are ‘send only’ (ie, no feedback from the fan, and no reception of handheld remotes). Furthermore, all the commands apart from “Off” (and “Learn”) are relative to current state (not absolute), and there’s no way to know what the current state is apart from looking at the fan.

In the current configuration OH is driving the RFXCom, whilst NR runs some logic & presents a HomeKit interface.

Trying to figure out how to migrate this to the new configuration, and running into some challenges.

Whilst I could drive things directly from NR, ideally I want to interface the RFXCom device via Home Assistant as I also want to read & use state from a number of sensors (temp, humidity, motion, etc).

So… I have a couple of questions - any help/suggestions would be very much appreciated!!!

First question - how do I represent the fan controls in HA? Controls are:

  • Off (command byte value = 8 / 0b 0000 1000)
  • Speed increase / on (command byte value = 13 / 0b 0000 1101)
  • Speed decrease / on (command byte value = 5 / 0b 0000 0101)
  • Direction toggle (command byte value = 7 / 0b 0000 0111)
  • Learn (command byte value = 2 / 0b 0000 0010)

The fans have seven speeds and speed increase/decrease wrap around (ie if fan at max speed, another click of speed increase sets fan to slowest speed. Conversely, if the fan is at slowest speed, clicking speed decrease sets the fan to highest speed). No way of knowing what the current speed is, and no way of setting an absolute speed.

Similarly, fan direction toggles every time you send the toggle command and, again, no way of knowing what the current direction is.

If fan is off, pressing either speed increase or decrease turns the fan on at the speed it ran last time it was on.

I’m happy to just replicate the remote’s buttons within the HA implementation (which then gets presented to user via HomeKit) & allow the user to control it as desired.

Second question - it doesn’t look like the Home Assistant / Node Red integration directly supports fans (it only understands switches, binary sensors, & sensors). It does, however, let me call the HA API (either REST or Websocket interface).

Assuming I make progress with Q1 - how do I then work out how to drive the fan abstraction via the API?

Once again, any help appreciated. Thanks!!

1 post - 1 participant

Read full topic

Recorder change url for standard database

$
0
0

Hello,
As default, the url for the database is located in the config dir.
I do not find how the change this location to, for example, : backup/database
This is just to keep the config dir not too big for the snapshots.
Can an expert in db help me ? and show me an example of url pointing to a directory still on the sd card.
By the way is there already a solution for user of hassio to put the database to an external disk via the USB 3 ?
Ppatou

1 post - 1 participant

Read full topic

Inetgration: waves and flags on the see

$
0
0

Hello,

Looking for intergration to get information about the level of waves on some spain beaches and flags (if itsis allowed to swim - red, yello or green)
Is there any integrations about it?

Thanks!

2 posts - 2 participants

Read full topic

MyStrom v2 temperature not working

$
0
0

Hello,

I’m new on Home Assistant and my first challenge is to join my MyStrom v2 switch. I spent a lot of time but I can get the temperature value. As I’ve seen on github, change for v2 seems to be done. Somebody can check my config ?

# MyStrom Switch v2
switch:
  - platform: mystrom
    host: 192.168.178.49
    name: myswitch1

sensor:
  - platform: template
    sensors:
      power:
        friendly_name: "Current Power"
        unit_of_measurement: "W"
        value_template: "{{ state_attr('switch.mystrom1', 'current_power_w') }}"
      current_temperature:
        friendly_name: "Current Temperature"
        unit_of_measurement: "°C"
        value_template: "{{ state_attr('switch.mystrom1', 'temperature') }}"

On the Dev tool, I can see:

MyStrom v2 Firmware: 3.82.40
Home Assistant version: 0.113.3 (on Docker)

Thanks for your help

David

1 post - 1 participant

Read full topic

Home assistant webhook error

$
0
0

Hi everyone. Receantly I’ve configured google home mini with my HA. I am using cloud so I enabled webhooks from config page. I added automation like this:

- alias: 'Obluga IFTT dla google assistanta'
  initial_state: 'on'
  trigger:
    - platform: event
      event_type: ifttt_webhook_received
      event_data:
        action: 'call_service'
  action:
    - service_template: '{{ trigger.event.data.service }}'
      data_template:
        entity_id: '{{ trigger.event.data.entity_id }}'

And by using IFTT I created google assistant action. It respond to me when I fire it but no action is done :frowning: And in HA logs I see:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/webhook/__init__.py", line 97, in async_handle_webhook
    response = await webhook["handler"](hass, webhook_id, request)
  File "/usr/src/homeassistant/homeassistant/components/google_assistant/helpers.py", line 239, in _handle_local_webhook
    result = await smart_home.async_handle_message(
  File "/usr/src/homeassistant/homeassistant/components/google_assistant/smart_home.py", line 27, in async_handle_message
    config, user_id, source, message["requestId"], message.get("devices")
KeyError: 'requestId'

My That action looks like this (I removed vulnerable data):

What might be the problem?

1 post - 1 participant

Read full topic


Having heat problems with my Raspberry PI 3B model

$
0
0

Since i run a couple of features on my Raspberry PI 3 Model B i do run into heat issues it looks like.
Nothing of the features should give much load to the Raspberry PI.
I don’t think that it is normal that Home assistant should overload the Raspberry PI and come instable/unresponsive.
I run Z-Wave, Toon Eneco, RFXCOM, Unifi, App daemon, Tuya, Spotify.
When i touch the processor it is much hotter than normal. It doesn’t have it all the time it happens sometimes just overnight to become in this state.
I don’t know for sure if it is a heat problem or some other thing that does make it instable/unresponsive but i like to know what you should do if you run into certain problems.
How can i measure the temperature of the PI inside Home assistant?
Thanks for the help !

1 post - 1 participant

Read full topic

Automation for MQTT HVAC AC

$
0
0

Hello,
I configured an AC with MQTT HVAC with ESP8266 board.
It’s the configuration.yaml:

climate:
  - platform: mqtt
    name: AC_Receiver_LivingRoom
    unique_id: '1'
    qos: 1
    precision: 1.0
    retain: true
    modes:
      - "off"
      - "cool"
      - "heat"
    min_temp: 16
    max_temp: 30
    payload_on: 'on'
    payload_off: 'off'
    
    power_command_topic: 'cmnd/AC_Receiver/IRhvac'
    power_state_topic: 'tele/AC_Receiver/RESULT'
    power_state_template: '{{ value_json["IrReceived"]["IRHVAC"]["Power"] }}'
    
    mode_command_topic: 'cmnd/AC_Receiver/IRhvac'
    mode_state_topic: 'tele/AC_Receiver/RESULT'
    mode_state_template: '{{ value_json["IrReceived"]["IRHVAC"]["Mode"] | lower }}'


    temperature_command_topic: 'cmnd/AC_Receiver/IRhvac'
    temperature_state_topic: 'tele/AC_Receiver/RESULT'
    temperature_state_template: '{{ value_json["IrReceived"]["IRHVAC"]["Temp"] }}'

I have a script that sending mqtt to the AC:


'1587984879652':
   alias: AC Commands
   sequence:
   - service: mqtt.publish
     data:
      topic: cmnd/AC_Receiver/IRhvac
      payload_template: >
        {% if is_state('climate.ac_receiver_livingroom','off') %} {"Vendor":"GREE","Power":"off", "Mode":"{{states('climate.ac_receiver_livingroom')}}","FanSpeed":"Max","Temp":{{state_attr('climate.ac_receiver_livingroom','temperature')}}} 
        {% elif is_state('climate.ac_receiver_livingroom','heat') and state_attr('climate.ac_receiver_livingroom','temperature')|int == 16 %} {"Vendor":"GREE","Power":"on", "Mode":"{{states('climate.ac_receiver_livingroom')}}","FanSpeed":"Max","Temp":{{state_attr('climate.ac_receiver_livingroom','temperature')}}} 
        {% elif is_state('climate.ac_receiver_livingroom','heat') and state_attr('climate.ac_receiver_livingroom','temperature')|int == 17 %} {"Vendor":"GREE","Power":"on", "Mode":"{{states('climate.ac_receiver_livingroom')}}","FanSpeed":"Max","Temp":{{state_attr('climate.ac_receiver_livingroom','temperature')}}} 
        {% elif is_state('climate.ac_receiver_livingroom','heat') and state_attr('climate.ac_receiver_livingroom','temperature')|int == 18 %} {"Vendor":"GREE","Power":"on", "Mode":"{{states('climate.ac_receiver_livingroom')}}","FanSpeed":"Max","Temp":{{state_attr('climate.ac_receiver_livingroom','temperature')}}}
        {% elif is_state('climate.ac_receiver_livingroom','heat') and state_attr('climate.ac_receiver_livingroom','temperature')|int == 19 %} {"Vendor":"GREE","Power":"on", "Mode":"{{states('climate.ac_receiver_livingroom')}}","FanSpeed":"Max","Temp":{{state_attr('climate.ac_receiver_livingroom','temperature')}}} 
        {% elif is_state('climate.ac_receiver_livingroom','heat') and state_attr('climate.ac_receiver_livingroom','temperature')|int == 20 %} {"Vendor":"GREE","Power":"on", "Mode":"{{states('climate.ac_receiver_livingroom')}}","FanSpeed":"Max","Temp":{{state_attr('climate.ac_receiver_livingroom','temperature')}}} 
        {% elif is_state('climate.ac_receiver_livingroom','heat') and state_attr('climate.ac_receiver_livingroom','temperature')|int == 21 %} {"Vendor":"GREE","Power":"on", "Mode":"{{states('climate.ac_receiver_livingroom')}}","FanSpeed":"Max","Temp":{{state_attr('climate.ac_receiver_livingroom','temperature')}}} 
        {% elif is_state('climate.ac_receiver_livingroom','heat') and state_attr('climate.ac_receiver_livingroom','temperature')|int == 22 %} {"Vendor":"GREE","Power":"on", "Mode":"{{states('climate.ac_receiver_livingroom')}}","FanSpeed":"Max","Temp":{{state_attr('climate.ac_receiver_livingroom','temperature')}}}
        {% elif is_state('climate.ac_receiver_livingroom','heat') and state_attr('climate.ac_receiver_livingroom','temperature')|int == 23 %} {"Vendor":"GREE","Power":"on", "Mode":"{{states('climate.ac_receiver_livingroom')}}","FanSpeed":"Max","Temp":{{state_attr('climate.ac_receiver_livingroom','temperature')}}} 
        {% elif is_state('climate.ac_receiver_livingroom','heat') and state_attr('climate.ac_receiver_livingroom','temperature')|int == 24 %} {"Vendor":"GREE","Power":"on", "Mode":"{{states('climate.ac_receiver_livingroom')}}","FanSpeed":"Max","Temp":{{state_attr('climate.ac_receiver_livingroom','temperature')}}}
        {% elif is_state('climate.ac_receiver_livingroom','heat') and state_attr('climate.ac_receiver_livingroom','temperature')|int == 25 %} {"Vendor":"GREE","Power":"on", "Mode":"{{states('climate.ac_receiver_livingroom')}}","FanSpeed":"Max","Temp":{{state_attr('climate.ac_receiver_livingroom','temperature')}}}
        {% elif is_state('climate.ac_receiver_livingroom','heat') and state_attr('climate.ac_receiver_livingroom','temperature')|int == 26 %} {"Vendor":"GREE","Power":"on", "Mode":"{{states('climate.ac_receiver_livingroom')}}","FanSpeed":"Max","Temp":{{state_attr('climate.ac_receiver_livingroom','temperature')}}} 
        {% elif is_state('climate.ac_receiver_livingroom','heat') and state_attr('climate.ac_receiver_livingroom','temperature')|int == 27 %} {"Vendor":"GREE","Power":"on", "Mode":"{{states('climate.ac_receiver_livingroom')}}","FanSpeed":"Max","Temp":{{state_attr('climate.ac_receiver_livingroom','temperature')}}} 
        {% elif is_state('climate.ac_receiver_livingroom','heat') and state_attr('climate.ac_receiver_livingroom','temperature')|int == 28 %} {"Vendor":"GREE","Power":"on", "Mode":"{{states('climate.ac_receiver_livingroom')}}","FanSpeed":"Max","Temp":{{state_attr('climate.ac_receiver_livingroom','temperature')}}} 
        {% elif is_state('climate.ac_receiver_livingroom','heat') and state_attr('climate.ac_receiver_livingroom','temperature')|int == 29 %} {"Vendor":"GREE","Power":"on", "Mode":"{{states('climate.ac_receiver_livingroom')}}","FanSpeed":"Max","Temp":{{state_attr('climate.ac_receiver_livingroom','temperature')}}} 
        {% elif is_state('climate.ac_receiver_livingroom','heat') and state_attr('climate.ac_receiver_livingroom','temperature')|int == 30 %} {"Vendor":"GREE","Power":"on", "Mode":"{{states('climate.ac_receiver_livingroom')}}","FanSpeed":"Max","Temp":{{state_attr('climate.ac_receiver_livingroom','temperature')}}}
        {% elif is_state('climate.ac_receiver_livingroom','cool') and state_attr('climate.ac_receiver_livingroom','temperature')|int == 16 %} {"Vendor":"GREE","Power":"on", "Mode":"{{states('climate.ac_receiver_livingroom')}}","FanSpeed":"Max","Temp":{{state_attr('climate.ac_receiver_livingroom','temperature')}}} 
        {% elif is_state('climate.ac_receiver_livingroom','cool') and state_attr('climate.ac_receiver_livingroom','temperature')|int == 17 %} {"Vendor":"GREE","Power":"on", "Mode":"{{states('climate.ac_receiver_livingroom')}}","FanSpeed":"Max","Temp":{{state_attr('climate.ac_receiver_livingroom','temperature')}}} 
        {% elif is_state('climate.ac_receiver_livingroom','cool') and state_attr('climate.ac_receiver_livingroom','temperature')|int == 18 %} {"Vendor":"GREE","Power":"on", "Mode":"{{states('climate.ac_receiver_livingroom')}}","FanSpeed":"Max","Temp":{{state_attr('climate.ac_receiver_livingroom','temperature')}}}
        {% elif is_state('climate.ac_receiver_livingroom','cool') and state_attr('climate.ac_receiver_livingroom','temperature')|int == 19 %} {"Vendor":"GREE","Power":"on", "Mode":"{{states('climate.ac_receiver_livingroom')}}","FanSpeed":"Max","Temp":{{state_attr('climate.ac_receiver_livingroom','temperature')}}}
        {% elif is_state('climate.ac_receiver_livingroom','cool') and state_attr('climate.ac_receiver_livingroom','temperature')|int == 20 %} {"Vendor":"GREE","Power":"on", "Mode":"{{states('climate.ac_receiver_livingroom')}}","FanSpeed":"Max","Temp":{{state_attr('climate.ac_receiver_livingroom','temperature')}}} 
        {% elif is_state('climate.ac_receiver_livingroom','cool') and state_attr('climate.ac_receiver_livingroom','temperature')|int == 21 %} {"Vendor":"GREE","Power":"on", "Mode":"{{states('climate.ac_receiver_livingroom')}}","FanSpeed":"Max","Temp":{{state_attr('climate.ac_receiver_livingroom','temperature')}}} 
        {% elif is_state('climate.ac_receiver_livingroom','cool') and state_attr('climate.ac_receiver_livingroom','temperature')|int == 22 %} {"Vendor":"GREE","Power":"on", "Mode":"{{states('climate.ac_receiver_livingroom')}}","FanSpeed":"Max","Temp":{{state_attr('climate.ac_receiver_livingroom','temperature')}}} 
        {% elif is_state('climate.ac_receiver_livingroom','cool') and state_attr('climate.ac_receiver_livingroom','temperature')|int == 23 %} {"Vendor":"GREE","Power":"on", "Mode":"{{states('climate.ac_receiver_livingroom')}}","FanSpeed":"Max","Temp":{{state_attr('climate.ac_receiver_livingroom','temperature')}}}
        {% elif is_state('climate.ac_receiver_livingroom','cool') and state_attr('climate.ac_receiver_livingroom','temperature')|int == 24 %} {"Vendor":"GREE","Power":"on", "Mode":"{{states('climate.ac_receiver_livingroom')}}","FanSpeed":"Max","Temp":{{state_attr('climate.ac_receiver_livingroom','temperature')}}} 
        {% elif is_state('climate.ac_receiver_livingroom','cool') and state_attr('climate.ac_receiver_livingroom','temperature')|int == 25 %} {"Vendor":"GREE","Power":"on", "Mode":"{{states('climate.ac_receiver_livingroom')}}","FanSpeed":"Max","Temp":{{state_attr('climate.ac_receiver_livingroom','temperature')}}} 
        {% elif is_state('climate.ac_receiver_livingroom','cool') and state_attr('climate.ac_receiver_livingroom','temperature')|int == 26 %} {"Vendor":"GREE","Power":"on", "Mode":"{{states('climate.ac_receiver_livingroom')}}","FanSpeed":"Max","Temp":{{state_attr('climate.ac_receiver_livingroom','temperature')}}} 
        {% elif is_state('climate.ac_receiver_livingroom','cool') and state_attr('climate.ac_receiver_livingroom','temperature')|int == 27 %} {"Vendor":"GREE","Power":"on", "Mode":"{{states('climate.ac_receiver_livingroom')}}","FanSpeed":"Max","Temp":{{state_attr('climate.ac_receiver_livingroom','temperature')}}}
        {% elif is_state('climate.ac_receiver_livingroom','cool') and state_attr('climate.ac_receiver_livingroom','temperature')|int == 28 %} {"Vendor":"GREE","Power":"on", "Mode":"{{states('climate.ac_receiver_livingroom')}}","FanSpeed":"Max","Temp":{{state_attr('climate.ac_receiver_livingroom','temperature')}}} 
        {% elif is_state('climate.ac_receiver_livingroom','cool') and state_attr('climate.ac_receiver_livingroom','temperature')|int == 29 %} {"Vendor":"GREE","Power":"on", "Mode":"{{states('climate.ac_receiver_livingroom')}}","FanSpeed":"Max","Temp":{{state_attr('climate.ac_receiver_livingroom','temperature')}}} 
        {% elif is_state('climate.ac_receiver_livingroom','cool') and state_attr('climate.ac_receiver_livingroom','temperature')|int == 30 %} {"Vendor":"GREE","Power":"on", "Mode":"{{states('climate.ac_receiver_livingroom')}}","FanSpeed":"Max","Temp":{{state_attr('climate.ac_receiver_livingroom','temperature')}}}
        {% endif %}

I have an IR trasnmitter and IR reciever. When I press the remote of the AC it changing the UI of the AC in the home assistant and sends mqtt to the AC. It’s working.
But I have a problem that when I am trying to turn on the AC or change mode or temperature from the UI of the home assistant it doesn’t work and it writes in the console of the ESP8266:

12:33:24 CMD: Group 0, Index 1, Command "IRHVAC", Data "25.0"
12:33:24 MQT: stat/AC_Receiver/RESULT = {"IRHVAC":"Invalid JSON"}
12:33:26 MQT: Received Topic "cmnd/AC_Receiver/IRhvac", Data Size 4, Data "25.0"

I writed an automation that in every change in the state of the entity climate.climate.ac_receiver_livingroom it will activate the script but it doesn’t work.
It’s the automation:

- id: '1596884572019'
  alias: AC changed
  description: ''
  trigger:
  - entity_id: climate.ac_receiver_livingroom
    platform: state
  condition: []
  action:
  - data: {}
    service: script.1587984879652
  mode: single

Someone can help me?

1 post - 1 participant

Read full topic

Need help with home assistant

$
0
0

Hi is there a way to make a inputboolen into a media player so it shows in home assistant as a media player. The reason why is I have a old non smart tv and I can’t integrate into home assistant with the harmony hub and I use input boolens as virtual switches to send ir commands with scripts to turn on and off my devices

Thank you in advance

3 posts - 2 participants

Read full topic

Delay doesen't work

$
0
0

Hello, I have made an installation in our chicken house, where i installed a cam which is connected to home assitant. Every Evening at a certain time it automatically takes a picture from the chickens and send it to my phone. I can also trigger the automation with a button. So I can check if everithing is allright with them. Bevore the picture is taken, i switch on a light and then wait for 3s and then take the picture.

Unfortunately I have big problems with the ‘delay’. Sometimes the delay ist correct, but most of the time the picture ist taken right after I trigger the sequence is triggered. And then of course no light is on!

Here is my sequence:

'1594453443792':
  alias: CheckChicken
  sequence:
  - data: {}
    entity_id: light.chicken_house
    service: light.turn_on
  - data:
      entity_id: light.chicken_house
      mode: normal
    service: yeelight.set_mode
  - data:
      brightness: 50
      entity_id: light.chicken_house
      rgb_color:
      - 190
      - 158
      - 104
    service: yeelight.set_color_scene
  - delay: 00:00:05
  - condition: state
    entity_id: light.chicken_house
    state: 'on'
  - data:
      filename: /config/www/photos/snapshot_chicken.jpg
    entity_id: camera.aithinkercam
    service: camera.snapshot
  - delay: 00:00:05
  - data: {}
    entity_id: light.chicken_house
    service: light.turn_off
  mode: single
  icon: mdi:bird

Has somebody an idea, why the delay is working so bad?

I thought with the new release this problem is gone, but thats not true.

Thank you.

2 posts - 2 participants

Read full topic

How to get timers real remaining time?

Viewing all 106357 articles
Browse latest View live


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