Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid event types for Hue tap (8718696743133) device #8631

Open
dieneuser opened this issue Jan 18, 2025 · 3 comments
Open

Invalid event types for Hue tap (8718696743133) device #8631

dieneuser opened this issue Jan 18, 2025 · 3 comments

Comments

@dieneuser
Copy link
Contributor

dieneuser commented Jan 18, 2025

Since switching to version 2.0.0 and activating the 'Home Assistant experimental event entities' function, I get errors in Home Assistant and therefore cannot use the event types. With the old style mqtt trigger and listen to the topic the automations still work.

Logger: homeassistant.components.mqtt.event
Quelle: components/mqtt/event.py:173
Integration: MQTT (Dokumentation, Probleme)
Erstmals aufgetreten: 14. Januar 2025 um 05:18:06 (10 Vorkommnisse)
Zuletzt protokolliert: 06:22:52

Invalid event type press_1_and_2 for event.0x0000000000482097_action received on topic zigbee2mqtt/0x0000000000482097, payload {"event_type":"press_1_and_2"}
Invalid event type release_1_and_2 for event.0x0000000000482097_action received on topic zigbee2mqtt/0x0000000000482097, payload {"event_type":"release_1_and_2"}
Invalid event type press_3_and_4 for event.0x0000000000482097_action received on topic zigbee2mqtt/0x0000000000482097, payload {"event_type":"press_3_and_4"}
Invalid event type release_3_and_4 for event.0x0000000000482097_action received on topic zigbee2mqtt/0x0000000000482097, payload {"event_type":"release_3_and_4"}

I use the modules inside the Hue tap (labeled with enocean PTM 215Z) in light switches with double rockers. As soon as I hold down both buttons up or down, these errors occur.
In the code for the device philips.ts, I could see that the other possible states are missing in the expose part.

exposes: [e.action(['press_1', 'press_2', 'press_3', 'press_4'])],

Is it possible to add the other 4 states so that I can use the device to its full extent via the event function?

exposes: [e.action(['press_1', 'press_2', 'press_3', 'press_4', 'press_1_and_2', 'release_1_and_2', 'press_3_and_4', 'release_3_and_4'])],

Device info
Image

Possible actions
Image

@dieneuser
Copy link
Contributor Author

After I wrote an external converter with the added actions, there are no more errors and the events now have the correct status.

./external_converters/hue_tap.js

const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const e = exposes.presets;

const definition = [
    {
        fingerprint: [{modelID: 'GreenPower_2', ieeeAddr: /^0x00000000004.....$/}],
        model: '8718696743133',
        vendor: 'Philips',
        description: 'Hue tap',
        fromZigbee: [fz.hue_tap],
        toZigbee: [],
        exposes: [e.action([
			'press_1', 
			'press_2', 
			'press_3', 
			'press_4',
			'press_1_and_2',
			'release_1_and_2',
			'press_3_and_4',
			'release_3_and_4'
		])],
    }
];

module.exports = definition;

dieneuser added a commit to dieneuser/zigbee-herdsman-converters that referenced this issue Jan 18, 2025
@Adastreia
Copy link

in light switches with double rockers

May I just ask which model of light switches you use for the modules inside the Hue Tap? I'm currently looking to do the same with mine :)

@dieneuser
Copy link
Contributor Author

in light switches with double rockers

May I just ask which model of light switches you use for the modules inside the Hue Tap? I'm currently looking to do the same with mine :)

I have been using this set for a long time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants