IKEA Trådfri button input to blockly event

Moderator: leecollings

vfr7
Posts: 19
Joined: Tuesday 27 December 2022 20:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Sweden
Contact:

IKEA Trådfri button input to blockly event

Post by vfr7 »

I have some IKEA Trådfri buttons that I want to control my blockly event with. Let's say a simple set/reset function with two buttons in different places. One button to start and one button to stop. I use a simple outlet controlled by two buttons. What should I use in the blockley button input? If I use "On" or "Off" nothing happens.
Last edited by vfr7 on Wednesday 28 December 2022 10:50, edited 2 times in total.
solarboy
Posts: 300
Joined: Thursday 01 November 2018 19:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.6
Location: Portugal
Contact:

Re: IKEA Trådfri button inpuyt to blockly event

Post by solarboy »

Which Zigbee system are you using ? zigbee2mqtt, Conbee or something else ?
Intel NUC with Ubuntu Server VM (Proxmox),mosquitto(docker),RFXtrx433E,zwavejsUI (docker),Zigbee2mqtt(docker),SMA Hub (docker),Harmony Hub plugin, Kodi plugin,Homebridge(docker)+Google Home,APC UPS,SMA Modbus,Mitsubishi MQTT, Broadlink,Dombus
vfr7
Posts: 19
Joined: Tuesday 27 December 2022 20:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Sweden
Contact:

Re: IKEA Trådfri button inpuyt to blockly event

Post by vfr7 »

RPi with Zigate plugin board right now.
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: IKEA Trådfri button input to blockly event

Post by waltervl »

Do you have a Domoticz switch device connected to that buttons?
Do you see something in the logs when you press a button on those devices?

For usage of those buttons in Zigate (now called ZigbeeforDomoticz) see wiki page https://zigbeefordomoticz.github.io/wik ... with-plug-
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
vfr7
Posts: 19
Joined: Tuesday 27 December 2022 20:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Sweden
Contact:

Re: IKEA Trådfri button input to blockly event

Post by vfr7 »

Aha! That I hadn't seen. No I have no switch device. I will read some more about this and maybe I can understand a little bit more. Thankyou very much so far. :D
vfr7
Posts: 19
Joined: Tuesday 27 December 2022 20:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Sweden
Contact:

Re: IKEA Trådfri button input to blockly event

Post by vfr7 »

My installation went corrupt and I decided to start over from the beginning with updated components. I installed 2022-09-22-raspios-bullseye-armhf.img.xy and got it starting up nice with Domoticz installation. But now the problem start. I can't find the Zigate instructions I had used for my earlier installation and after some searching around it looks like the whole system is reworked into "Zigbee for Domoticz". Ok. I try to follow the guide for installing:
https://zigbeefordomoticz.github.io/wik ... bian-linux
but fails trying to find wiringpi as it is marked deprecated.

Now I'm totally confused and have no idea where to go further... :-(
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: IKEA Trådfri button input to blockly event

Post by waltervl »

From the zigate website I found this

Code: Select all

cd /temp
wget https://project-downloads.drogon.net/wiringpi-latest.deb
sudo dpkg -i wiringpi-latest.deb
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
vfr7
Posts: 19
Joined: Tuesday 27 December 2022 20:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Sweden
Contact:

Re: IKEA Trådfri button input to blockly event

Post by vfr7 »

Thanx, Walter! :-)

That helped a lot for wiringpi. Strange that the Wiki doesn't say anything about that.

Now I have another problem. When I choose serial port in the plugin settings, I can't choose serial 0 as it should be according to the Wiki installation description. The console for serial 0 is disabled according to the Wiki instructions. What am I doing wrong?
vfr7
Posts: 19
Joined: Tuesday 27 December 2022 20:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Sweden
Contact:

Re: IKEA Trådfri button input to blockly event

Post by vfr7 »

I remember now there was a problem that might have to do with this.
9. Set the accessability of the serial adapter to ‘No’ using raspi-config option P6 (Interfacing options / serial):
In my installation there is no P6 option. The 'P' options only go to 4. And since this has to do with serial I believe it hast to do with my problem. But why doesn't my installation coordinate with the Wiki? And what should I do instead?
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: IKEA Trådfri button input to blockly event

Post by waltervl »

The developer of the plugin (@pipiche) is notified of your issue so he hopefully will step in soon.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
pipiche
Posts: 1975
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: IKEA Trådfri button input to blockly event

Post by pipiche »

unfortunatly I have no idea. and the Zigate wiki (unfortunately in French) is not giving any alternatives
https://zigate.fr/documentation/parametrer-la-pizigate/

On the forum, the Zigate manufacturer is advising to use https://project-downloads.drogon.net/wi ... latest.deb
https://zigate.fr/forum/topic/remplacement-wiringpi/ which was advise by @waltervl

Which type of PI do you have ?
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
pipiche
Posts: 1975
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: IKEA Trådfri button input to blockly event

Post by pipiche »

Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
vfr7
Posts: 19
Joined: Tuesday 27 December 2022 20:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Sweden
Contact:

Re: IKEA Trådfri button input to blockly event

Post by vfr7 »

Thankyou very much. There is one line I havn't seen before. It's the "enable_uart=1" line which seems to have something to do with my problem. I'll check into it a bit more.
vfr7
Posts: 19
Joined: Tuesday 27 December 2022 20:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Sweden
Contact:

Re: IKEA Trådfri button input to blockly event

Post by vfr7 »

The "enable_uart=1" line in config solved the serial problem. Now I can add the Zigate hardware and it pops up in the hardware list.

Next to do is to start paring with "Permit join time" and clear old pairings with "Erase Persistent Data: True". But I can't find those settings. Where do I find them?
pipiche
Posts: 1975
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: IKEA Trådfri button input to blockly event

Post by pipiche »

Hope that helps ...
Screenshot 2023-01-23 at 21.54.49.png
Screenshot 2023-01-23 at 21.54.49.png (190.74 KiB) Viewed 1291 times
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
vfr7
Posts: 19
Joined: Tuesday 27 December 2022 20:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Sweden
Contact:

Re: IKEA Trådfri button input to blockly event

Post by vfr7 »

Thanx. Ok. It has changed since the instruction was written. Maybe that instruction should also be changed then.

Now, I've probably succeeded emptying the old pairing list with the coordinator initialization.

Then put it in pairing mode. Do you mean that should be done thru the plugin dasboard?

I have tried accessing the dashboard settings by changing port 8080 against 9440 but can't get access to any page there.
pipiche
Posts: 1975
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: IKEA Trådfri button input to blockly event

Post by pipiche »

can you check the Logs/PluginZigbee-xx.log ?
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
vfr7
Posts: 19
Joined: Tuesday 27 December 2022 20:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Sweden
Contact:

Re: IKEA Trådfri button input to blockly event

Post by vfr7 »

I cant find that file. Neither can "Locate". What's the complete path to it?

I have found "~/domoticz/plugins/Domoticz-Zigbee/Logs" but there is no "PluginZigbee-xx.log" file there. Do I have to enable it in some way?
vfr7
Posts: 19
Joined: Tuesday 27 December 2022 20:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Sweden
Contact:

Re: IKEA Trådfri button input to blockly event

Post by vfr7 »

Now I've assured I have the latest plugin version by running the update procedure at #12 in the installation instructions. Still can't access the plugin web page at port 9440.
pipiche
Posts: 1975
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: IKEA Trådfri button input to blockly event

Post by pipiche »

Without any logs we cannot really help you
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest