janick
(Janick)
April 18, 2022, 9:36pm
1
I need the opposite of the new “Switch as X” feature!
Smart switches show up as lights in HA. As I am using them as plain switches (they may or many not control a light – the latter being actually controlled by a separate slave power switch), I’d like HA to treat them the same.
Please. Pretty please.
frenck
(Franck Nijhof)
April 18, 2022, 9:40pm
2
Interesting, which integration does that? As that sounds more like a bug that needs fixing
1 Like
janick
(Janick)
April 18, 2022, 9:42pm
3
Zigbee ZHA, with Jasco smart switches (sold under the “enbrighten” brand).
I also have some Zigbee switches which do the same thing, show up as lights. So far I’ve used template switches to ‘convert’ them.
janick
(Janick)
April 18, 2022, 10:30pm
5
Would to mind sharing your template code?
No worries.
switch:
- platform: template
switches:
kingsley_games_room_camera_power:
value_template: "{{ is_state('light.kingsley_games_room_camera_power', 'on') }}"
turn_on:
service: light.turn_on
target:
entity_id: light.kingsley_games_room_camera_power
turn_off:
service: light.turn_off
target:
entity_id: light.kingsley_games_room_camera_power
MRegan
(Michael)
October 10, 2022, 10:28pm
7
This device also reports as a light instead of four switches.
I second your request as also Philips Hue switches are delivered in the ‘light’ domain.
pappajohan
(Pappajohan)
December 15, 2022, 10:18am
9
…and everything z-wave from my Telldus too, so my curtains are lights…
phrop
(Dave)
March 16, 2024, 7:32pm
10
2024 Still have the same experience with a Tuya 7-32v relay. It ZHA picked it up right away, but it appears as a light instead of a switch.
Edwin_D
(Edwin D.)
April 27, 2024, 6:25pm
11
pappajohan:
my curtains are lights
You must not be amused. But personally LOL, no offense intended. I can see the helper section explode. Light as curtain, climate as refrigerator, fan as toaster oven, …