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

Define the colors shown in the Homekit light device

$
0
0

@jorgeanzola wrote:

So, I’ve seen this post by @andrepia. I’m not really sure if that’s what I need. Cause what I’d like is to just show the same colour set in all the lights (Yeelights) shown in Homekit.

Right now, I’ve copy-pasted Andrepia’s code snippet into my configuration, and indeed I’ve got

But for example, I’d like to have only one option of white, yellow and maybe a few colours just to fill out the spaces.

I don’t get completely how the Homekit integration works and it has a lot of configuration options, maybe anyone has an idea? :smiley: thanks!

Posts: 1

Participants: 1

Read full topic


Help me set up the sensibo

$
0
0

@Emerson_Santos wrote:

hello guys i’m a beginner, HA i have 6 sensibo currently and i haven’t been able to configure any so far, can you help me please?

Posts: 1

Participants: 1

Read full topic

Need help define a template

$
0
0

@IngoNRW wrote:

Hello i want so set a template (sensor?) to set a value.
Backround are five Switches to measure the fuel level of a water tank.

Here we go

switch 1 off Water Level 0 %
switch 2 on Water Level 25 %
switch 3 on Water Level 50 %
switch 4 on Water Level 75 %
switch 5 on Watter Level 100 %

How can i set the Percent to the Entity sensor.Waterlevel ?

did I need a Lambda ?

Thank for your Help and greetings from Germany

Posts: 1

Participants: 1

Read full topic

Is there a way to reboot google home devices remotely?

$
0
0

@FutureTense wrote:

I was hoping to use a script to be able to force one or all of my google assistant speakers. I’ve noticed some of them become sluggish, but having to cycle the power is not an acceptable method.

Posts: 2

Participants: 2

Read full topic

How to remove / unpair a device from Sonoff RF Bridge (Tasmota)

$
0
0

@Jatho wrote:

Hi Guys

Anyone know how to remove a device that has been linked to a Sonoff RF Bridge running Tasmota? I linked a door sensor to my bridge but it was just on the edge of the range of the unit so kept losing its connection so I bought a second bridge which I have linked it to but it doesn’t seem to be happy to be linked to two bridges so want to unlink it from the first bridge.

I did a reset on the bridge and reconfigured it hoping it would forget the door sensor but it didn’t.

Thanks

Posts: 1

Participants: 1

Read full topic

Aqara devices in unknown state in HA with Nortek HUSBZB-1

$
0
0

@gravenstein31 wrote:

I am running HA .109.6 on RPi3, have recently bought some Aqara devices(windows/door and motion sensors) connected with HA using Nortek HUSBZB-1, I am able to search and add the sensors to the HA but the device states sits in unknown status and nothing changes. Tried removing and re-adding the devices few times, every time it gets discovered but nothing happens after that. Have left the senors next the ZHA stick for a hours without any progress.

Following is logs of one of the door sensors after its gets discovers and added to the HA

[0x0000:zdo] ZDO request ZDOCmd.Mgmt_Permit_Joining_req: [60, <Bool.false: 0>]

Device 0xf743 (00:15:8d:00:04:5c:fe:89) joined the network

Device 00:15:8d:00:04:5c:fe:89 changed id (0x66f8 => 0xf743)

[0xf743:zdo] ZDO request ZDOCmd.Device_annce: [0xf743, 00:15:8d:00:04:5c:fe:89, 128]

[0xf743] Requesting 'Node Descriptor'

[0xf743] Extending timeout for 0x3b request

Ignoring message (b'18000a050042166c756d692e73656e736f725f6d61676e65742e61713201002003') on cluster 0: unknown endpoint or cluster id: 1

Ignoring message (b'1c5f11010a01ff421d0121ef0b0328120421a80105213200062401000000000a210000641000') on cluster 0: unknown endpoint or cluster id: 1

Ignoring message (b'1c5f11020a050042166c756d692e73656e736f725f6d61676e65742e61713201ff421d0121ef0b0328130421a80105213200062400000000000a210000641000') on cluster 0: unknown endpoint or cluster id: 1

[0xf743] Node Descriptor: <Optional byte1=2 byte2=64 mac_capability_flags=128 manufacturer_code=4151 maximum_buffer_size=127 maximum_incoming_transfer_size=100 server_mask=0 maximum_outgoing_transfer_size=100 descriptor_capability_field=0>

[0xf743] Discovering endpoints

[0xf743] Extending timeout for 0x3d request

[0xf743] Discovered endpoints: [1]

[0xf743:1] Discovering endpoint information

[0xf743] Extending timeout for 0x3f request

Ignoring message (b'1c5f11030a050042166c756d692e73656e736f725f6d61676e65742e61713201ff421d0121ef0b0328120421a80105213200062400000000000a210000641000') on cluster 0: unknown endpoint or cluster id: 'No cluster ID 0x0000 on (00:15:8d:00:04:5c:fe:89, 1)'

[0xf743:1] Discovered endpoint information: <SimpleDescriptor endpoint=1 profile=260 device_type=24321 device_version=1 input_clusters=[0, 3, 65535, 6] output_clusters=[0, 4, 65535]>

[0xf743] Extending timeout for 0x41 request

[0xf743:1:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=True is_reply=True disable_default_response=True> manufacturer=4447 tsn=4 command_id=Command.Report_Attributes>

[0xf743:1:0x0000] ZCL request 0x000a: [[<Attribute attrid=5 value=<TypeValue type=CharacterString, value=lumi.sensor\_magnet.aq2>>, <Attribute attrid=65281 value=<TypeValue type=CharacterString, value=!�(!�!2>>]]

[0xf743:1:0x0000] Attribute report received: model=lumi.sensor_magnet.aq2, 65281=!�(!�!2

[0xf743:1:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=65 command_id=Command.Read_Attributes_rsp>

[0xf743:1] Manufacturer: LUMI

[0xf743:1] Model: lumi.sensor_magnet.aq2

Checking quirks for LUMI lumi.sensor_magnet.aq2 (00:15:8d:00:04:5c:fe:89)

Considering <class 'zhaquirks.xiaomi.aqara.magnet_aq2.MagnetAQ2'>

Found custom device replacement for 00:15:8d:00:04:5c:fe:89: <class 'zhaquirks.xiaomi.aqara.magnet_aq2.MagnetAQ2'>

device - 0xf743:00:15:8d:00:04:5c:fe:89 entering async_device_initialized - is_new_join: True

device - 0xf743:00:15:8d:00:04:5c:fe:89 has joined the ZHA zigbee network

[0xf743](lumi.sensor_magnet.aq2): started configuration

[0xf743:ZDO](lumi.sensor_magnet.aq2): 'async_configure' stage succeeded

[0xf743:1:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=True is_reply=True disable_default_response=True> manufacturer=4447 tsn=0 command_id=Command.Report_Attributes>

[0xf743:1:0x0000] ZCL request 0x000a: [[<Attribute attrid=5 value=<TypeValue type=CharacterString, value=lumi.sensor\_magnet.aq2>>, <Attribute attrid=65281 value=<TypeValue type=CharacterString, value=!�(!�!3>>]]

[0xf743:1:0x0000] Attribute report received: model=lumi.sensor_magnet.aq2, 65281=!�(!�!3

[0xf743:1:0x0001]: skipping channel configuration

[0xf743:1:0x0000]: skipping channel configuration

[0xf743] Extending timeout for 0x43 request

[0xf743:1:0x0006]: skipping channel configuration

[0xf743:1:0x0006]: skipping channel configuration

[0xf743:1:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=True is_reply=True disable_default_response=True> manufacturer=4447 tsn=1 command_id=Command.Report_Attributes>

[0xf743:1:0x0000] ZCL request 0x000a: [[<Attribute attrid=5 value=<TypeValue type=CharacterString, value=lumi.sensor\_magnet.aq2>>, <Attribute attrid=65281 value=<TypeValue type=CharacterString, value=!�(!�!3>>]]

[0xf743:1:0x0000] Attribute report received: model=lumi.sensor_magnet.aq2, 65281=!�(!�!3

[0xf743:1:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=67 command_id=Command.Read_Attributes_rsp>

[0xf743:1:0x0000]: initializing channel: from_cache: False

[0xf743:1:0x0001]: 'async_configure' stage succeeded

[0xf743:1:0x0000]: 'async_configure' stage succeeded

[0xf743:1:0x0006]: 'async_configure' stage succeeded

[0xf743:1:0x0006]: 'async_configure' stage succeeded

[0xf743](lumi.sensor_magnet.aq2): completed configuration

[0xf743](lumi.sensor_magnet.aq2): stored in registry: ZhaDeviceEntry(name='LUMI lumi.sensor_magnet.aq2', ieee='00:15:8d:00:04:5c:fe:89', last_seen=1589209493.757837)

[0xf743] Extending timeout for 0x45 request

[0xf743] Delivery error for seq # 0x45, on endpoint id 1 cluster 0x0003: message send failure

[0xf743:1:0x0003]: command failed: trigger_effect exception: [0xf743:1:0x0003]: Message send failure

[0xf743](lumi.sensor_magnet.aq2): started initialization

[0xf743:ZDO](lumi.sensor_magnet.aq2): 'async_initialize' stage succeeded

[0xf743:1:0x0001]: initializing channel: from_cache: False

[0xf743] Extending timeout for 0x47 request

[0xf743] Extending timeout for 0x49 request

[0xf743:1:0x0006]: initializing channel: from_cache: False

[0x0000:zdo] ZDO request ZDOCmd.Mgmt_NWK_Update_rsp: [<Status.SUCCESS: 0>, <Channels.ALL_CHANNELS: 134215680>, 24, 7, [172, 173, 166, 174, 187, 159, 167, 191, 158, 160, 216, 157, 164, 214, 158, 158]]

[0x0000:zdo] Unsupported ZDO request:ZDOCmd.Mgmt_NWK_Update_respond

Door
Motion

Any suggestion where can I check more for the cause to get this fixed?

Posts: 1

Participants: 1

Read full topic

Updating a sensor only with an automation

$
0
0

@nfh wrote:

Hello everyone.

I want to track my house consumption on an hourly basis. For this I am considering to create a template sensor that will be updated by an automation. The sensor itself will use a power meter device (an Aeotec Home Energy Meter) as its data source for calculating the hourly consumption.
I still have to figure out if it is possible to create sensors that are an array (to store 24 different values in a single sensor), or if I need to create 24 different sensors for this purpose.
Nonetheless, my main question is: how can I create a sensor that uses other sensors are their source of values, but are not triggered for update based on those sensors’ changes? As I mentioned, the whole point is to update them only through an automation.

Posts: 1

Participants: 1

Read full topic

Remote RPi GPIO on an Intel NUC

$
0
0

@akkaria wrote:

I am running my Home Assistant instance on an Intel NUC and I am wanting to control the GPIO pins on my RPi Zero for a custom video doorbell solution I’m working on.

I’m trying to use the remote_rpi_gpio component but I don’t see to be having any luck. For the moment I’m just adding a switch but I don’t seem to be getting anything coming up in Home Assistant, I’m not even getting any errors in the logs.

I’ve enabled everything I need to enable on the RPi as well as installed all the relevant dependencies.

From all the research I’ve been doing, am I correct in understanding that this integration will not work on an Intel NUC as it requires RPi.GPIO to be installed but you cannot on a NUC??

Posts: 2

Participants: 2

Read full topic


Is there really no way to delete a webhook?

$
0
0

@marwun01 wrote:

Long story short had to do a reinstall and ended up with what looks like an orphaned webhook.

I suspect it is from the Samsung Integration (nabu casa). Is there a way to tell?

Looks like webhooks can not be deleted in HA from the cloud config in the UI. I tried both samsung apps (classic and new) to delete the integration (even deleted the app). Tried deleting via browser access…all no luck. Looks like there is a python script to delete but that looks to be for pure HA python installs and I am using docker.

Options? There has got to be a way to delete it. …sample log entries below

2020-05-12 07:34:31 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 113f62e7c90a6bb80f57297ccadc7a97f68005917e6908c916ce90cd5a0484cb

2020-05-12 07:34:39 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 113f62e7c90a6bb80f57297ccadc7a97f68005917e6908c916ce90cd5a0484cb

2020-05-12 07:35:08 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 113f62e7c90a6bb80f57297ccadc7a97f68005917e6908c916ce90cd5a0484cb

2020-05-12 07:35:27 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 113f62e7c90a6bb80f57297ccadc7a97f68005917e6908c916ce90cd5a0484cb

2020-05-12 07:35:57 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 113f62e7c90a6bb80f57297ccadc7a97f68005917e6908c916ce90cd5a0484cb

2020-05-12 07:36:04 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 113f62e7c90a6bb80f57297ccadc7a97f68005917e6908c916ce90cd5a0484cb

2020-05-12 07:36:12 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 113f62e7c90a6bb80f57297ccadc7a97f68005917e6908c916ce90cd5a0484cb

2020-05-12 07:36:34 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 113f62e7c90a6bb80f57297ccadc7a97f68005917e6908c916ce90cd5a0484cb

Posts: 1

Participants: 1

Read full topic

Read Xiaomi Aqara door sensor with MQTT from second HA instance

$
0
0

@Polarlys wrote:

Hi, I am using two instances of HA, one in the office and the other one at home (both on Synology in Docker-Containers). The Networks of the office and home are linked with a VPN. In the office i use multiple door-and-window-sensors from Xiaomi with an Aqara Hub. Now I want to know the status of the sensors (on/off) from the office in the HA-instance at home, so that i can create automations with that stats (e.g. start the light in the bedroom at home when the door in the office is opened during the night. For that i installed Mosquitto on my Synology at home in a docker-container and added in both configuration.yaml:

#MQTT Broker
mqtt:
  broker: xxx.xxx.xxx.xxx
  port: 1883

But now i don’t know what to do further. How is the next step on the HA instance in the office and at home so that i can see the door sensor from office in the instance at home?
Happy for help!

Posts: 1

Participants: 1

Read full topic

Creating dummy/virtual power meters

$
0
0

@tringler wrote:

Hello,

what would be your ideas to create dummy/virtual power meters? I don’t have installed power meters for my lights, but I’m pretty sure that they consume i.e. 10W if they are on.

How would be your thoughts to collect their consumption?

Thanks, Thomas

Posts: 1

Participants: 1

Read full topic

Automation not checking state of input_boolean

$
0
0

@ajgnet wrote:

I have a light switch in my office that I’m using as a “master switch” to control a few desk lamps. When the master switch turns on, the desk lamps turn on… same for off. I do this with an automation that checks the state of the master switch, and when the state changes from off to on, a scene is activated that sets the desk lamps to the proper levels.

However, sometimes at night I like to dim the lights in the office. I have a scene that sets the main lights to 50%, and the desk lights to 50%. However the above automation detects the master switch state change from off to on, and triggers the lights at full brightness. Only if I execute the scene a second time (with the master switch already “on”) do the brightness levels get set correctly as it bypasses the automation.

To get around this, I was thinking of creating an input_boolean variable that temporarily deactivates the automation. So for example, the automation only runs if the input_boolean.protected_office is set to off. When I trigger the dimming scene, I have a script that sets protected_office to ON and then sets it to off after the script is finished. My thinking was this could disable the automation.

automations.yaml

 - alias: Office Lights On
  trigger:
    platform: state
    entity_id: light.office_main_lights
    from: 'off'
    to: 'on'
  condition:
    condition: and
    conditions:        
      - condition: state
        entity_id: input_boolean.protected_office
        state: 'off'
      - condition: time 
        after: '06:00:00'
        before: '19:00:00'
  action:
    service: scene.turn_on
    entity_id: scene.office_work

scripts.yaml

office_relaxation:
  alias: "Office Relaxation"
  sequence:
    - service: input_boolean.turn_on
      data:
        entity_id: input_boolean.protected_office
    - service: scene.turn_on
      entity_id: scene.office_relaxation
    - service: input_boolean.turn_off
      data:
        entity_id: input_boolean.protected_office

scenes.yaml

- name: Office Relaxation
  entities:
    light.office_main_lights:
      state: true
      brightness_pct: 40
      transition: 60
    light.office_desk_adam:
      state: true
      transition: 5
      brightness_pct: 40
    light.office_desk_daniela:
      state: true
      transition: 5
      brightness_pct: 40

- name: Office Work
  entities:
    light.office_main_lights:
      state: true
      brightness_pct: 100
    light.office_desk_adam:
      state: true
      brightness_pct: 100
    light.office_desk_daniela:
      state: true
      brightness_pct: 100

However this doesn’t work. The input_boolean variable is ignored by the automation. Any idea what could be going on?

Thanks in advance.

Posts: 2

Participants: 2

Read full topic

Fan icon not turning yellow when on (but it used to work...)

$
0
0

@pedropaislopes wrote:

Hello!

After a start from scratch (from home assistant Python virtual env to Home Assistant Supervised on generic Linux) I’m migrating a bunch of entities (tamplate fans, template sensors, lights and so on) to the new installation. The most part is running smoothly, but FAN is not working as expected because of a minor issue: when the FAN is on the icon is not turning yellow when on (like lights, binary sensors etc).

An screenshot is below.

Captura de Tela 2020-05-12 às 13.03.19

The FAN is on (and is physically spining hehe), speed is LOW and direction is clockwise. But the fan icon is gray! Am I missing something? There isn’t any customisation, everything is quite “vanilla” (for now).

Just in case here is the FAN template describing “Centro Varanda”.

      varanda_centro:
        friendly_name: "Centro Varanda"
        value_template: >-
          {% if state_attr('sensor.auto_principal', 'ventdm') != None %}
            {% if states.sensor.auto_principal.attributes.ventdm[0]|int == 0 %} off {% else %} on {% endif %}
          {% else %}
            off
          {% endif %}
        speed_template: >-
          {% if state_attr('sensor.auto_principal', 'ventdm') != None %}
            {% if states.sensor.auto_principal.attributes.ventdm[0]|int|abs > 70 %} high
            {% elif states.sensor.auto_principal.attributes.ventdm[0]|int|abs > 40 %} medium
            {% elif states.sensor.auto_principal.attributes.ventdm[0]|int|abs >= 0 %} low
            {% endif %}
          {% else %}
            low
          {% endif %}
        direction_template: >-
          {% if state_attr('sensor.auto_principal', 'ventdm') != None %}
            {% if states.sensor.auto_principal.attributes.ventdm[0]|int >= 0 %} forward {% else %} reverse {% endif %}
          {% else %}
            forward
          {% endif %}
        turn_on:
          - service: shell_command.auto_principal_script
            data_template: 
              arg: >-
                {% if speed == 'low' and direction == 'forward' %} '<n,0,33>'
                {% elif speed == 'low' and direction == 'reverse' %} '<o,0,33>'
                {% elif speed == 'medium' and direction == 'forward' %} '<n,0,66>'
                {% elif speed == 'medium' and direction == 'reverse' %} '<o,0,66>'
                {% elif speed == 'high' and direction == 'forward' %} '<n,0,100>'
                {% elif speed == 'high' and direction == 'reverse' %} '<o,0,100>'
                {% else %} '<n,0,33>'
                {% endif %}
        turn_off:
          - service: shell_command.auto_principal_script
            data_template:
              arg: '<f,0,0>'
        set_speed:
          - service: shell_command.auto_principal_script
            data_template: 
              arg: >- 
                {% if speed == off %} '<f,0,0>'
                {% elif speed == 'low' and states.fan.varanda_centro.attributes.direction == 'forward' %} '<n,0,33>'
                {% elif speed == 'low' and states.fan.varanda_centro.attributes.direction == 'reverse' %} '<o,0,33>'
                {% elif speed == 'medium' and states.fan.varanda_centro.attributes.direction == 'forward' %} '<n,0,66>'
                {% elif speed == 'medium' and states.fan.varanda_centro.attributes.direction == 'reverse' %} '<o,0,66>'
                {% elif speed == 'high' and states.fan.varanda_centro.attributes.direction == 'forward' %} '<n,0,100>'
                {% elif speed == 'high' and states.fan.varanda_centro.attributes.direction == 'reverse' %} '<o,0,100>'
                {% endif %}
        set_direction:
          - service: shell_command.auto_principal_script
            data_template:
              arg: >-
                {% if states.fan.varanda_centro.attributes.speed == 'low' and direction == 'forward' %} '<n,0,33>'
                {% elif states.fan.varanda_centro.attributes.speed == 'low' and direction == 'reverse' %} '<o,0,33>'
                {% elif states.fan.varanda_centro.attributes.speed == 'medium' and direction == 'forward' %} '<n,0,66>'
                {% elif states.fan.varanda_centro.attributes.speed == 'medium' and direction == 'reverse' %} '<o,0,66>'
                {% elif states.fan.varanda_centro.attributes.speed == 'high' and direction == 'forward' %} '<n,0,100>'
                {% elif states.fan.varanda_centro.attributes.speed == 'high' and direction == 'reverse' %} '<o,0,100>'
                {% endif %}
        speeds:
            - 'off'
            - 'low'
            - 'medium'
            - 'high'

Cheers and thanks a lot for the good work!

Posts: 2

Participants: 2

Read full topic

Google cast media player, Text to Spleak needed!

$
0
0

@vormsty wrote:

Hello,
I use duckdns.
I have the following config:

http:
  base_url: https://xxx.duckdns.org:8123
  ssl_certificate: /ssl/fullchain.pem
  ssl_key: /ssl/privkey.pem

tts:
  - platform: google_translate
    cache: true
    cache_dir: /tmp/tts
    time_memory: 300
    base_url: https://xxx.duckdns.org:8123
    service_name: google_say
    language: 'fr'

HA recognise my tv (and my android phone)
How can I use my tv as a text to speak device.
I read a lot of documents but don’t understand…

Many thanks for your help.
Best regards
Thierry

Posts: 1

Participants: 1

Read full topic

IR Fan automation

$
0
0

@D5120 wrote:

I wonder if somebody could point me in the right direction. I’m a long time user of Domoticz, and recently moved over to Home Assistant. Although I’ve got the majority of my home automation up and running, I’m struggling to get my head around how to control my IR ceiling fan.

I have a Westinghouse IR fan with 4 states, controller via Logitech Harmony Hub.

In Domz, I used to have a dummy switch, with 4 states (Off, Low, Med and Max). Dependant on the temperature in the room, Domz would call a shell script which would in turn would send the correct IR signal to the fan.

In Home Assistant, I’ve set up 4 scripts for the 4 states which work great from the Scripts screen.

I’ve spent the day at looking at script example, using templated switches, but I’m getting a little lost.

Assuming I have 4 scripts setup and working in Home Assistant (1 = off, 2 = Low, 3 = Med, 4 =Max), below is pseudo code of what I’m trying to achieve.

IF numeric_state of sensor.office_sensor_temperature < 21
run script 1
IF numeric_state of sensor.office_sensor_temperature => 21
run script 2
IF numeric_state of sensor.office_sensor_temperature => 23
run script 3
IF numeric_state of sensor.office_sensor_temperature => 25
run script 4

I’m not sure if I even need to use Scripts in Home Assistant, as I can directly control the fan via the remote.send_command function.

If somebody can point me in the right direction, that would be great.

Thanks in advance.
Darren

Posts: 2

Participants: 2

Read full topic


MQTT HVAC Configuration for MHI-AC-CTRL (ESP8266)

$
0
0

@li_gangyi wrote:

Using MQTT HVAC to control my ACs at home, I managed to get them configured with some workaround previously posted (to make them work with slightly different commands that need to be published).

It’s currently running in optimistic for power and modes. The AC currently publishes to 2 seperate topics
/Mode and /Power
How can I combine these 2 and then feed it back into MQTT HVAC? I tried adding another Automation as such:

- alias: ACmode controller
  trigger:
    platform: mqtt
    topic: MHI-AC-Ctrl-GYGYAC/Mode
  trigger:
    platform:mqtt
    topic: MHI-AC-Ctrl-GYGYAC/Power
  action:
    service: mqtt.publish
    data_template:
      topic: MHI-AC-Ctrl-GYGYAC/Mode/HVAC
      payload: >
        {% set values = { "Auto":"auto", "Fan":"fan_only", "Cool":"cool", "Dry":"dry", "Off","off"} %}
        {{ values[trigger.payload] if trigger.payload in values.keys() else "Auto" }}

The logic is not quite right, as I’m thinking I’m triggering on anything that’s changing. How do I make it such that it only publishes a payload when /Power is “On” and at the same time ‘convert’ the values to something that MQTT HVAC expects.

This would hopefully solve another side issue that I have, which is that I still sometimes run the ACs with their remotes (horrors). /Power will update accordingly, however I’d still need to feed that into MQTT HVAC so I don’t have to say toggle it on and then off as it’s in an unknown state.

Posts: 1

Participants: 1

Read full topic

NABUCASA connection lost always when restart homeassistant

$
0
0

@jmvaz wrote:

Hi!

Always when I restart homeassistant due to some configuration changes, I need to go to Nabucasa website and press the button connect:
image

Is this behaviour correct? Sometimes I forgot to do this procedure and I lost the connection outside my network.

Thanks

Posts: 1

Participants: 1

Read full topic

Automate switch cycling to get selected light color

$
0
0

@jayg37 wrote:

I’m looking for an elegant way to create a drop down (helper)(or cluster of buttons) in HA GUI that i can select from a list of 17 programs for my pool lights. The lights themselves have built in logic that allows the user, via turning the power off and on quickly, to cycle through the different color patterns/programs. I would like to use a drop down or perhaps a card with all the programs listed as a button the user could select.

The tricky part is the system would have to keep track of what program # the lights are currently on then flick the off/on X amount of times to get to the next selected program.

Alt: I can have each button/dropdown line linked to an automation that would turn the light off for 5 seconds so it resets to program 1 then cycle power the appropriate amount of times to get to the selected program.

I’m fairly new to HA (about 2 months now) and have zero javascript knowledge. So any elegant solutions you can think of would require some detail for me to understand.

Running
RPi 4
HassOS 3.13
HA 109.6

Posts: 1

Participants: 1

Read full topic

Min and max value for last 24h with variable sampling time

$
0
0

@omcdr wrote:

I want to display min and max value in 24h for outside sensor.
Is in this sensor min_age and max_age attribute depends on sampling_size ?
How to calculate sampling_size for last 24 hours ? This is zigbee sensor with variable sampling time.

- platform: statistics
  entity_id: sensor.outside
  name: "Outside stats"
  sampling_size: 500
  max_age:
    minutes: 1440

- platform: template
  sensors:
    outside_max:
      friendly_name: "outside max"
      value_template: "{{ state_attr('sensor.outside_stats', 'max_value') }}"
      unit_of_measurement: "°C"
    outside_min:
      friendly_name: "outside min"
      value_template: "{{ state_attr('sensor.outside_stats', 'min_value') }}"
      unit_of_measurement: "°C"

Posts: 1

Participants: 1

Read full topic

Acknowledging Alerts, what am I missing

$
0
0

@ptdalen wrote:

So I have this alert and have had it for quite a while. It lets me know when the fridge gets warm (door likely left open)

  garage_fridge_temp:
    name: Garage Fridge temp above 40 degreees
    done_message: Garage Fridge temp is now less than 40 degrees
    entity_id: binary_sensor.garage_fridge_cold
    state: 'off'
    repeat:
      - 15
      - 30
      - 60
    can_acknowledge: True
    skip_first: True
    notifiers:
      - mobile_app_pauls_iphone

maybe I dont understand the acknowledge, but on my phone I get alerts every 60 minutes, no matter what. How do I acknowledge (and silence) this alert via the app?

About once a month when I add a lot of items to the fridge the alert goes off and lasts a several hours. I’d like to acknowledge, and have it stop alerting me.

Posts: 1

Participants: 1

Read full topic

Viewing all 106404 articles
Browse latest View live