KaufHA / kauf-rgb-switch

Files for the KAUF RGB Wall Switch
21 stars 8 forks source link

Switch not controlling light group #13

Open whc-commits opened 1 year ago

whc-commits commented 1 year ago

Running the rotate colors and I am unable to get the switch to control the light group. Lights are MQTT and the Kauf switch is esphome. Turn on/off the switch doesn't switch the bulbs. Toggling the light group in HA changes the switch state as normal. Just switch to light group is broken. No color control, no toggling. Partial config below. The light group name in substitutions is correct.

substitutions:
  name: cj-room-light
  hass_light_entity: light.cj_room_light_group
  hass_ct_kelvin_fixed: '2300'
  initial_delay: 1000ms

packages:
  Kauf.RGBSw: github://KaufHA/kauf-rgb-switch/kauf-rgbs.yaml
bkaufx commented 1 year ago

Do you have the other package in your yaml like in this example: https://github.com/KaufHA/kauf-rgb-switch/tree/main/yaml-features#rotate-colors-sync-to-ha-lightyaml

packages:
  Kauf.RGBSw: github://KaufHA/kauf-rgb-switch/kauf-rgbs.yaml
  rotate_colors: github://KaufHA/kauf-rgb-switch/yaml-features/rotate-colors-sync-to-ha-light.yaml
whc-commits commented 1 year ago

Yes - didnt paste the entire block

substitutions:
  name: cj-room-light
  hass_light_entity: light.cj_room_light_group
  hass_ct_kelvin_fixed: '2300'
  initial_delay: 1000ms

packages:
  Kauf.RGBSw: github://KaufHA/kauf-rgb-switch/kauf-rgbs.yaml
  rotate:     github://KaufHA/kauf-rgb-switch/yaml-features/rotate-colors-sync-to-ha-light.yaml 

Home Assistant 2023.7.2 Supervisor 2023.07.1 Operating System 10.2 Frontend 20230705.1 - latest

whc-commits commented 1 year ago

This was in the log

Logger: homeassistant.components.esphome
Source: components/esphome/__init__.py:247
Integration: ESPHome ([documentation](https://www.home-assistant.io/integrations/esphome), [issues](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+esphome%22))
First occurred: 1:09:17 PM (96 occurrences)
Last logged: 2:32:25 PM

CJ Room Light: Service call light.turn_on: with data {'entity_id': 'light.cj_room_light_group', 'transition': '0', 'rgb_color': [255, 255, 0]} rejected; If you trust this device and want to allow access for it to make Home Assistant service calls, you can enable this functionality in the options flow
CJ Room Light: Service call light.turn_on: with data {'entity_id': 'light.cj_room_light_group', 'transition': '0', 'rgb_color': [127, 255, 0]} rejected; If you trust this device and want to allow access for it to make Home Assistant service calls, you can enable this functionality in the options flow
CJ Room Light: Service call light.turn_off: with data {'entity_id': 'light.cj_room_light_group'} rejected; If you trust this device and want to allow access for it to make Home Assistant service calls, you can enable this functionality in the options flow
CJ Room Light: Service call light.turn_on: with data {'entity_id': 'light.cj_room_light_group', 'color_temp': '250'} rejected; If you trust this device and want to allow access for it to make Home Assistant service calls, you can enable this functionality in the options flow
CJ Room Light: Service call light.turn_on: with data {'entity_id': 'light.cj_room_light_group', 'kelvin': '2300'} rejected; If you trust this device and want to allow access for it to make Home Assistant service calls, you can enable this functionality in the options flow
bkaufx commented 1 year ago

Oh yea. You need to go into home assistant, find the device under the ESPHome integration, and enable Home Assistant service calls. I'll add this to the documentation.

bkaufx commented 1 year ago

This is the interface you want. Click CONFIGURE on the device.

image