Hi all,
For some reason my new HEIMAN HS2IRC is not supported, but the Zigbee2mqtt website said it is.
see:
the information in Zigbee2MQTT:
Device type
Router
Zigbee Model
IRControl2-EF-3.0
Zigbee Manufacturer
HEIMAN
Support status
Not supported [(how_to_add_support)]
Hi thanks for the reply.
the link takes me to Workday, is this right?
anyways, i tried the legacy, restarted, but still it its on battery and action instead of “learning IRcode” and “IR code to send”.
Also there is no battery or action with this device, thats why its weird.
Okey, i tried both legacy and the other : advanced:
homeassistant_legacy_entity_attributes: false
homeassistant_legacy_triggers: false
legacy_api: false
legacy_availability_payload: false
device_options:
legacy: false
Now the device is back to unsupported.
for some reason it wil not pick up the .JS file…
i tested it by editing the description, but the description remains empty…
any idea why it is not picking up my .js file?
here is one i tested:
const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const e = exposes.presets;
const definition = {
zigbeeModel: ['IRControl2-EF-3.0'],
model: 'IRControl2-EF-3.0',
vendor: 'HEIMAN',
description: 'testing',
fromZigbee: [fz.command_recall],
toZigbee: [],
exposes: [e.learn_ir_code(), // Switch to initiate learning mode
e.learned_ir_code(), // Text attribute to display the learned IR code
e.ir_code_to_send(), // Text attribute to send an IR code
],
};
module.exports = definition;
Thanks for all the help!
Yes already done that: nly breaking when legacy is enabled :
All click sensors have been removed (homeassistant.legacy_triggers setting). This means all sensor.*_click entities are removed. Use the MQTT device trigger instead.
All action sensors are now disabled by default (sensor.*_action entities). It’s recommended to use the MQTT device trigger instead. In case you really need the action sensors, add the following to your configuration.yaml.
Where did you get the code for this from? Was this provided by ChatGPT by any chance?
I’m searching through the zigbee herdsman converters github and don’t see anything which matches your local code.
Again, you really should be copying the setup for the HS2IRC like I explained yesterday. It has different Tz & Fz than what you have which you should be recreating locally:
yes tried about 4 hours to find on internet and GPT.
the code you send on it self doesnt work (just no change to the device) (sorry, kinda new to this).
so i tried to combine it like this, it does work (its updateing the device) but the function doesnt work.
i guess i need to expose the right thing?
also looked at the log when i aim a remote to it an push some buttons, no respone however.
Have you tried creating local copies of fz.heiman_ir_remote and tz.heiman_ir_remote and changing them to fzLocal.heiman_ir_remote and tzLocal.heiman_ir_remote?
It should be pretty much what you did with tzLocal.heiman_ir_action (including creating local copies within the same file like you did here), only this time you’ll be using the actual code instead of something that ChatGPT hallucinated.
You can find the relevant part of the code by searching for heiman_ir_remote here for FZ and here for TZ.
If that still doesn’t work, I recommend you raise a device support request over on the Z2M github.