Re: PiFace support added
Posted: Saturday 08 August 2015 22:26
by NickHead
Maciek,
You could try and delete the old "Impulse" settings from Devices, and see if it changes when it finds them again.
Unless you did that already.
Also, did you run the update changes below ?
sudo apt-get --reinstall install libraspberrypi-bin libraspberrypi-dev libraspberrypi-doc libraspberrypi0 raspberrypi-bootloader
sudo reboot
Re: PiFace support added
Posted: Saturday 08 August 2015 22:46
by NickHead
This is how Domoticz starts up as depicted in the log file.
You can compare yours to this and see if it is anywhere near the same.
You may have to KickStart the PD2 in to running by the initpi.py program.
I SSH into my PI2 from a separate computer but have the PI2 next to me on another monitor.
The PI2 has the operating system on a USB stick and not the SD card.
Power supply is a 2A 5V Unit, this is because I had problems with a smaller supply causing
fluctuations and irrational booting.
Code: Select all
2015-08-08 21:39:04.885 Domoticz V2.2657 (c)2012-2015 GizMoCuz
2015-08-08 21:39:04.888 System: Raspberry Pi
2015-08-08 21:39:04.891 System: ODroid
2015-08-08 21:39:04.894 Startup Path: /home/pi/domoticz/
2015-08-08 21:39:05.737 Sunrise: 05:28:00 SunSet:20:45:00
2015-08-08 21:39:05.749 Active notification subsystems: (0/8)
2015-08-08 21:39:05.753 Webserver started on port: 6080
2015-08-08 21:39:06.295 Webserver started on port: 343
2015-08-08 21:39:07.826 Hardware Monitor: Started
2015-08-08 21:39:08.598 Incoming connection from: 192.168.1.104
2015-08-08 21:39:09.828 PiFace: Starting PiFace_SPI_Start()
2015-08-08 21:39:09.828 PiFace: SPI device opened successfully
2015-08-08 21:39:09.830 PiFace: Found the following PiFaces:
2015-08-08 21:39:09.830 PiFace: 0
2015-08-08 21:39:09.831 PiFace: config file: Valid address: 0 , Pin: 0 and Port O Parameter: enabled , Value false
2015-08-08 21:39:09.831 PiFace: config file: Valid address: 0 , Pin: 0 and Port O Parameter: pin_type , Value level
2015-08-08 21:39:09.832 PiFace: config file: Valid address: 0 , Pin: 0 and Port O Parameter: count_enabled , Value false
2015-08-08 21:39:09.832 PiFace: config file: Valid address: 0 , Pin: 0 and Port O Parameter: count_update_interval_sec , Value 30
2015-08-08 21:39:09.832 PiFace: config file: Valid address: 0 , Pin: 0 and Port I Parameter: enabled , Value true
2015-08-08 21:39:09.832 PiFace: config file: Valid address: 0 , Pin: 0 and Port I Parameter: pin_type , Value falling
2015-08-08 21:39:09.832 PiFace: config file: Valid address: 0 , Pin: 0 and Port I Parameter: count_enabled , Value true
2015-08-08 21:39:09.832 PiFace: config file: Valid address: 0 , Pin: 0 and Port I Parameter: count_update_interval_sec , Value 5
2015-08-08 21:39:09.834 PiFace: retrieved value for Input counter: BoardNr 0 , Pin: 0, Value 76098
2015-08-08 21:39:09.867 PiFace: Worker started...
2015-08-08 21:39:09.967 (PiFace) Lighting 1 (this)
2015-08-08 21:39:10.081 (PiFace) RFXMeter (Usage Meter)
2015-08-08 21:39:37.829 Hardware Monitor: Fetching data (System sensors)
2015-08-08 21:39:40.116 (PiFace) RFXMeter (Usage Meter)
I don't know what else I can add to help you both.
Re: PiFace support added
Posted: Sunday 09 August 2015 12:59
by macieiks
Hi, I was trying to reinstall libs on my beta but still no luck, so I connected my Photo Sensor to Arduino Nano and I can read these statistics using MySensors 1.4. Atleast it is working

. I run it on stable domoticz v2.2563. I set the node to report Nano gateway each 20 seconds.
Here are the statistics (avoid this ~10kWh report, I was testing with portable flashlight

)
Photo:
I will just use my PiFace 2 for different purposes.
Re: PiFace support added
Posted: Saturday 19 September 2015 5:03
by korniza
I think I found a bug
I have a raspberry pi 2 with piface 2. I can control the relays on piface 2 from the installed DOmoticz on raspberry (V2.3072).
I have also a Master DOmoticz server that runs on a PC (V2.3072). I have shared successfully the outputs of PiFace 2 on the Master.
The problem is that when I press the button on Master Domoticz to activate a relay on Slave (Raspberry 2+piface 2) nothing happens.
I cheched the logs. Command is sent to Slave successfully as you can see below.
EDIT: I also can see the bulb on SLAVE activated, even the relay is not armed!
MASTER
2015-09-19 06:01:02.561 Hardware Monitor: Fetching data (System sensors)
2015-09-19 06:01:17.200 (Raspberry Pi) Lighting 1 (Unknown)
2015-09-19 06:01:32.583 Hardware Monitor: Fetching data (System sensors)
2015-09-19 06:01:33.648 (Raspberry Pi) Lighting 1 (Unknown)
SLAVE
2015-09-19 06:00:55.331 Hardware Monitor: Fetching data (System sensors)
2015-09-19 06:01:17.187 (MyPiFace) Lighting 1 (face)
2015-09-19 06:01:25.393 Hardware Monitor: Fetching data (System sensors)
2015-09-19 06:01:33.705 (MyPiFace) Lighting 1 (face)
2015-09-19 06:01:55.455 Hardware Monitor: Fetching data (System sensors)
Re: PiFace support added
Posted: Thursday 01 March 2018 23:30
by Misiek1977
I've done this
I have piface conf
I've added piface (only four buttons are added)
but it is not working
Log is below.
2018-03-01 23:18:57.846 PiFace: Found the following PiFaces:
2018-03-01 23:18:57.847 PiFace: 0
2018-03-01 23:18:57.850 PiFace: config file: Valid address: 0 , Pin: 0 and Port O Parameter: enabled , Value false
2018-03-01 23:18:57.850 PiFace: config file: Valid address: 0 , Pin: 0 and Port O Parameter: pin_type , Value level
2018-03-01 23:18:57.850 PiFace: config file: Valid address: 0 , Pin: 0 and Port O Parameter: count_enabled , Value true
2018-03-01 23:18:57.850 PiFace: config file: Valid address: 0 , Pin: 0 and Port O Parameter: count_type , Value generic
2018-03-01 23:18:57.850 PiFace: config file: Valid address: 0 , Pin: 0 and Port O Parameter: count_update_interval_sec , Value 10
2018-03-01 23:18:57.850 PiFace: config file: Valid address: 0 , Pin: 0 and Port I Parameter: enabled , Value true
2018-03-01 23:18:57.850 PiFace: config file: Valid address: 0 , Pin: 0 and Port I Parameter: pin_type , Value rising
2018-03-01 23:18:57.850 PiFace: config file: Valid address: 0 , Pin: 0 and Port I Parameter: count_enabled , Value false
2018-03-01 23:18:57.851 PiFace: config file: Valid address: 0 , Pin: 0 and Port I Parameter: count_type , Value generic
2018-03-01 23:18:57.851 PiFace: config file: Valid address: 0 , Pin: 0 and Port I Parameter: count_update_interval_sec , Value 10
2018-03-01 23:18:57.851 PiFace: config file: Valid address: 0 , Pin: 1 and Port O Parameter: enabled , Value false
2018-03-01 23:18:57.851 PiFace: config file: Valid address: 0 , Pin: 1 and Port O Parameter: pin_type , Value level
2018-03-01 23:18:57.851 PiFace: config file: Valid address: 0 , Pin: 1 and Port O Parameter: count_enabled , Value true
2018-03-01 23:18:57.851 PiFace: config file: Valid address: 0 , Pin: 1 and Port O Parameter: count_type , Value generic
2018-03-01 23:18:57.851 PiFace: config file: Valid address: 0 , Pin: 1 and Port O Parameter: count_update_interval_sec , Value 10
2018-03-01 23:18:57.851 PiFace: config file: Valid address: 0 , Pin: 1 and Port I Parameter: enabled , Value true
2018-03-01 23:18:57.851 PiFace: config file: Valid address: 0 , Pin: 1 and Port I Parameter: pin_type , Value rising
2018-03-01 23:18:57.851 PiFace: config file: Valid address: 0 , Pin: 1 and Port I Parameter: count_enabled , Value false
2018-03-01 23:18:57.852 PiFace: config file: Valid address: 0 , Pin: 1 and Port I Parameter: count_type , Value generic
2018-03-01 23:18:57.852 PiFace: config file: Valid address: 0 , Pin: 1 and Port I Parameter: count_update_interval_sec , Value 10
2018-03-01 23:18:57.852 PiFace: config file: Valid address: 0 , Pin: 2 and Port O Parameter: enabled , Value false
2018-03-01 23:18:57.852 PiFace: config file: Valid address: 0 , Pin: 2 and Port O Parameter: pin_type , Value level
2018-03-01 23:18:57.852 PiFace: config file: Valid address: 0 , Pin: 2 and Port O Parameter: count_enabled , Value true
2018-03-01 23:18:57.852 PiFace: config file: Valid address: 0 , Pin: 2 and Port O Parameter: count_type , Value generic
2018-03-01 23:18:57.852 PiFace: config file: Valid address: 0 , Pin: 2 and Port O Parameter: count_update_interval_sec , Value 10
2018-03-01 23:18:57.852 PiFace: config file: Valid address: 0 , Pin: 2 and Port I Parameter: enabled , Value true
2018-03-01 23:18:57.852 PiFace: config file: Valid address: 0 , Pin: 2 and Port I Parameter: pin_type , Value rising
2018-03-01 23:18:57.852 PiFace: config file: Valid address: 0 , Pin: 2 and Port I Parameter: count_enabled , Value false
2018-03-01 23:18:57.852 PiFace: config file: Valid address: 0 , Pin: 2 and Port I Parameter: count_type , Value generic
2018-03-01 23:18:57.852 PiFace: config file: Valid address: 0 , Pin: 2 and Port I Parameter: count_update_interval_sec , Value 10
2018-03-01 23:18:57.853 PiFace: config file: Valid address: 0 , Pin: 3 and Port O Parameter: enabled , Value false
2018-03-01 23:18:57.853 PiFace: config file: Valid address: 0 , Pin: 3 and Port O Parameter: pin_type , Value level
2018-03-01 23:18:57.853 PiFace: config file: Valid address: 0 , Pin: 3 and Port O Parameter: count_enabled , Value true
2018-03-01 23:18:57.853 PiFace: config file: Valid address: 0 , Pin: 3 and Port O Parameter: count_type , Value generic
2018-03-01 23:18:57.853 PiFace: config file: Valid address: 0 , Pin: 3 and Port O Parameter: count_update_interval_sec , Value 10
2018-03-01 23:18:57.853 PiFace: config file: Valid address: 0 , Pin: 3 and Port I Parameter: enabled , Value true
2018-03-01 23:18:57.853 PiFace: config file: Valid address: 0 , Pin: 3 and Port I Parameter: pin_type , Value rising
2018-03-01 23:18:57.853 PiFace: config file: Valid address: 0 , Pin: 3 and Port I Parameter: count_enabled , Value false
2018-03-01 23:18:57.853 PiFace: config file: Valid address: 0 , Pin: 3 and Port I Parameter: count_type , Value generic
2018-03-01 23:18:57.853 PiFace: config file: Valid address: 0 , Pin: 3 and Port I Parameter: count_update_interval_sec , Value 10
2018-03-01 23:18:57.853 PiFace: config file: Valid address: 0 , Pin: 4 and Port O Parameter: enabled , Value false
2018-03-01 23:18:57.853 PiFace: config file: Valid address: 0 , Pin: 4 and Port O Parameter: pin_type , Value level
2018-03-01 23:18:57.854 PiFace: config file: Valid address: 0 , Pin: 4 and Port O Parameter: count_enabled , Value true
2018-03-01 23:18:57.854 PiFace: config file: Valid address: 0 , Pin: 4 and Port O Parameter: count_type , Value generic
2018-03-01 23:18:57.854 PiFace: config file: Valid address: 0 , Pin: 4 and Port O Parameter: count_update_interval_sec , Value 10
2018-03-01 23:18:57.854 PiFace: config file: Valid address: 0 , Pin: 4 and Port I Parameter: enabled , Value false
2018-03-01 23:18:57.854 PiFace: config file: Valid address: 0 , Pin: 4 and Port I Parameter: pin_type , Value rising
2018-03-01 23:18:57.854 PiFace: config file: Valid address: 0 , Pin: 4 and Port I Parameter: count_enabled , Value true
2018-03-01 23:18:57.854 PiFace: config file: Valid address: 0 , Pin: 4 and Port I Parameter: count_type , Value generic
2018-03-01 23:18:57.854 PiFace: config file: Valid address: 0 , Pin: 4 and Port I Parameter: count_update_interval_sec , Value 10
2018-03-01 23:18:57.854 PiFace: config file: Valid address: 0 , Pin: 5 and Port O Parameter: enabled , Value false
2018-03-01 23:18:57.854 PiFace: config file: Valid address: 0 , Pin: 5 and Port O Parameter: pin_type , Value level
2018-03-01 23:18:57.854 PiFace: config file: Valid address: 0 , Pin: 5 and Port O Parameter: count_enabled , Value true
2018-03-01 23:18:57.854 PiFace: config file: Valid address: 0 , Pin: 5 and Port O Parameter: count_type , Value generic
2018-03-01 23:18:57.855 PiFace: config file: Valid address: 0 , Pin: 5 and Port O Parameter: count_update_interval_sec , Value 10
2018-03-01 23:18:57.855 PiFace: config file: Valid address: 0 , Pin: 5 and Port I Parameter: enabled , Value false
2018-03-01 23:18:57.855 PiFace: config file: Valid address: 0 , Pin: 5 and Port I Parameter: pin_type , Value rising
2018-03-01 23:18:57.855 PiFace: config file: Valid address: 0 , Pin: 5 and Port I Parameter: count_enabled , Value true
2018-03-01 23:18:57.855 PiFace: config file: Valid address: 0 , Pin: 5 and Port I Parameter: count_type , Value generic
2018-03-01 23:18:57.855 PiFace: config file: Valid address: 0 , Pin: 5 and Port I Parameter: count_update_interval_sec , Value 10
2018-03-01 23:18:57.855 PiFace: config file: Valid address: 0 , Pin: 6 and Port O Parameter: enabled , Value false
2018-03-01 23:18:57.855 PiFace: config file: Valid address: 0 , Pin: 6 and Port O Parameter: pin_type , Value level
2018-03-01 23:18:57.855 PiFace: config file: Valid address: 0 , Pin: 6 and Port O Parameter: count_enabled , Value true
2018-03-01 23:18:57.856 PiFace: config file: Valid address: 0 , Pin: 6 and Port O Parameter: count_type , Value generic
2018-03-01 23:18:57.856 PiFace: config file: Valid address: 0 , Pin: 6 and Port O Parameter: count_update_interval_sec , Value 10
2018-03-01 23:18:57.856 PiFace: config file: Valid address: 0 , Pin: 6 and Port I Parameter: enabled , Value false
2018-03-01 23:18:57.856 PiFace: config file: Valid address: 0 , Pin: 6 and Port I Parameter: pin_type , Value rising
2018-03-01 23:18:57.856 PiFace: config file: Valid address: 0 , Pin: 6 and Port I Parameter: count_enabled , Value true
2018-03-01 23:18:57.856 PiFace: config file: Valid address: 0 , Pin: 6 and Port I Parameter: count_type , Value generic
2018-03-01 23:18:57.856 PiFace: config file: Valid address: 0 , Pin: 6 and Port I Parameter: count_update_interval_sec , Value 10
2018-03-01 23:18:57.856 PiFace: config file: Valid address: 0 , Pin: 7 and Port O Parameter: enabled , Value false
2018-03-01 23:18:57.856 PiFace: config file: Valid address: 0 , Pin: 7 and Port O Parameter: pin_type , Value level
2018-03-01 23:18:57.856 PiFace: config file: Valid address: 0 , Pin: 7 and Port O Parameter: count_enabled , Value true
2018-03-01 23:18:57.856 PiFace: config file: Valid address: 0 , Pin: 7 and Port O Parameter: count_type , Value generic
2018-03-01 23:18:57.857 PiFace: config file: Valid address: 0 , Pin: 7 and Port O Parameter: count_update_interval_sec , Value 10
2018-03-01 23:18:57.857 PiFace: config file: Valid address: 0 , Pin: 7 and Port I Parameter: enabled , Value false
2018-03-01 23:18:57.857 PiFace: config file: Valid address: 0 , Pin: 7 and Port I Parameter: pin_type , Value rising
2018-03-01 23:18:57.857 PiFace: config file: Valid address: 0 , Pin: 7 and Port I Parameter: count_enabled , Value true
2018-03-01 23:18:57.857 PiFace: config file: Valid address: 0 , Pin: 7 and Port I Parameter: count_type , Value generic
2018-03-01 23:18:57.857 PiFace: config file: Valid address: 0 , Pin: 7 and Port I Parameter: count_update_interval_sec , Value 10
2018-03-01 23:18:57.860 PiFace: Worker started...
2018-03-01 23:18:57.861 EventSystem: reset all events...
2018-03-01 23:18:57.861 EventSystem: reset all device statuses...
2018-03-01 23:18:57.972 (PI2) Lighting 1 (pi0)
2018-03-01 23:18:58.010 PluginSystem: Entering work loop.
2018-03-01 23:18:58.068 (PI2) Lighting 1 (pi1)
2018-03-01 23:18:58.090 Python EventSystem: Initalizing event module.
2018-03-01 23:18:58.091 EventSystem: Started
2018-03-01 23:18:58.091 EventSystem: Queue thread started...
2018-03-01 23:18:58.168 (PI2) Lighting 1 (pi2)
2018-03-01 23:18:58.273 (PI2) Lighting 1 (pi3)
2018-03-01 23:27:30.676 Error: PI2 hardware (2) thread seems to have ended unexpectedly
2018-03-01 23:28:50.040 Incoming connection from: 192.168.50.51
2018-03-01 23:28:55.102 User: Admin initiated a switch command (1/pi0/On)
2018-03-01 23:28:55.103 Error: Piface: wrong housecode I
Re: PiFace support added
Posted: Saturday 11 November 2023 19:02
by Michel13
Due to a dead SD card, I had to reinstall Domoticz on my RPI3.
What was supposed to be a simple job is becoming a nightmare because I can no longer get my Piface Digital 2 card to work.
Of course, spi is enabled in raspi-config. "PiFace - Raspberry Pi IO expansion board" is still available in the list of equipment controlled by Domoticz and I do have a list of devices displayed, but it is impossible to communicate with them.
The card itself seems inactive, pressing the buttons has no effect on the LEDs.
From what I have read, it seems that this material is no longer updated by the manufacturer.
I tried a few workarounds, without success.
Has anyone had the same problem and found a solution?