UPS Pico + Domoticz integration | New wiki page Topic is solved
Moderators: leecollings, remb0
- jfhautenauven
- Posts: 17
- Joined: Sunday 13 March 2016 16:09
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Belgium
- Contact:
UPS Pico + Domoticz integration | New wiki page
This article is about the integration of UPS Pico from pimodules.com with domoticz
http://www.domoticz.com/wiki/UPS_Pico
The tutorial is almost complete, I still need to give examples with domoticz switches, selector and blockly
Please if someone tests it and finds errors or wrong information, please advise me
http://www.domoticz.com/wiki/UPS_Pico
The tutorial is almost complete, I still need to give examples with domoticz switches, selector and blockly
Please if someone tests it and finds errors or wrong information, please advise me
-
- Posts: 115
- Joined: Sunday 11 January 2015 16:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: UPS Pico + Domoticz integration | New wiki page
Looks promising! I will check it next week.
- jfhautenauven
- Posts: 17
- Joined: Sunday 13 March 2016 16:09
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Belgium
- Contact:
Re: UPS Pico + Domoticz integration | New wiki page
Almost finished the full tutorial ... Double checking what I wrote right now ...
I added a changelog on the page for when I make modifications that could interest people that followed the guide previously or want to update their scripts
I added a changelog on the page for when I make modifications that could interest people that followed the guide previously or want to update their scripts
-
- Posts: 10
- Joined: Saturday 05 December 2015 22:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Berlin/Helsinki
- Contact:
Re: UPS Pico + Domoticz integration | New wiki page
Mr jfhautenauven
I appreciate the time you have taken to write down how to "integrate" the UPS pico into Domoticz!
I have been looking for this a while for my 1765km away, fully automated summer house. Because at that distance monitoring the Pi itself and environment data around it gets even more important the further away it is.
I was able to follow the setup guide and then started to implement your update script.
Every time I'm running it though I get an error:
This is how that part in the script looks like:
And the devices part in Domoticz:
Newbee as I am to coding Python (or any coding) I don't really know how to make this script work.
Would you maybe care to show how your's look like and I can try to mimic your works?
Thanks so very much!
//Robert
b.t.w. I got the led and buzzer working like a charm!
I don't have the fan part, so couldn't try that.
I appreciate the time you have taken to write down how to "integrate" the UPS pico into Domoticz!
I have been looking for this a while for my 1765km away, fully automated summer house. Because at that distance monitoring the Pi itself and environment data around it gets even more important the further away it is.
I was able to follow the setup guide and then started to implement your update script.
Every time I'm running it though I get an error:
Code: Select all
python upspico-and-domoticz.py
Traceback (most recent call last):
File "upspico-and-domoticz.py", line 18, in <module>
idx_PoweringMode = XX
NameError: name 'XX' is not defined
Code: Select all
# change these values
# domoticz = URL to the Domoticz server
# idx_ are the id's of the devices corresponding to the data in domoticz
domoticz = "http://127.0.0.1:8080"
idx_PoweringMode = XX
idx_BatteryVoltage = XX
idx_RpiVoltage = XX
idx_BatteryTemperature = XX
idx_RpiFanTemperature = XX
idx_FirmwareVersion = XX
idx_BatteryActiveSignal = XX
idx_BatteryLevelPercentage = XX
idx_BatteryChargerStatus = XX
# End
Newbee as I am to coding Python (or any coding) I don't really know how to make this script work.
Would you maybe care to show how your's look like and I can try to mimic your works?
Thanks so very much!
//Robert
b.t.w. I got the led and buzzer working like a charm!
I don't have the fan part, so couldn't try that.
-
- Posts: 10
- Joined: Saturday 05 December 2015 22:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Berlin/Helsinki
- Contact:
Re: UPS Pico + Domoticz integration | New wiki page
Mr jfhautenauven,
I owe you an apology.
Your description is correct and superb.
I missed as you probably seen to enter the idx values in the script which device to be updated.
After a re-update and added *ALL* sensors and values that your script reads it works perfectly well.
Again, thank you very much for this excellent guide!
Best,
//Robert
I owe you an apology.
Your description is correct and superb.
I missed as you probably seen to enter the idx values in the script which device to be updated.
After a re-update and added *ALL* sensors and values that your script reads it works perfectly well.
Again, thank you very much for this excellent guide!
Best,
//Robert
- jfhautenauven
- Posts: 17
- Joined: Sunday 13 March 2016 16:09
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Belgium
- Contact:
Re: UPS Pico + Domoticz integration | New wiki page
Hello Robert,lagus wrote:Mr jfhautenauven,
I owe you an apology.
Your description is correct and superb.
I missed as you probably seen to enter the idx values in the script which device to be updated.
After a re-update and added *ALL* sensors and values that your script reads it works perfectly well.
Again, thank you very much for this excellent guide!
Best,
//Robert
No problem, yeah indeed when I read the post on my smartphone I had seen your little mistake with the IDX numbers, sorry to reply so late but I hate to use the phone to reply because it's too tiny
Thanks for trying my scripts and following the wiki tutorial and also thanks for the feedback
If you find anything incorrect in the script or the wiki, please advise and I'll correct according to your obeservation
Best regards,
JF
-
- Posts: 12
- Joined: Monday 04 January 2016 12:35
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: UPS Pico + Domoticz integration | New wiki page
Hello, Salut,
Can i use the pico and the piface at the same time?
May be a conflict possible?
Thks for your advice.
JL
Can i use the pico and the piface at the same time?
May be a conflict possible?
Thks for your advice.
JL
RPi 2 + UPS Pico + enOcean + RFXCOM ext 250
-
- Posts: 38
- Joined: Saturday 28 January 2017 12:09
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.9700
- Location: Netherlands
- Contact:
Re: UPS Pico + Domoticz integration | New wiki page
Hi,
I tried to follow your instructions for upgrading the Pico firmware (HV3.0).
I could only get this done after stopping the daemon;
I tried to follow your instructions for upgrading the Pico firmware (HV3.0).
I could only get this done after stopping the daemon;
Code: Select all
sudo /etc/init.d/picofssd stop
Raspberry Pi3; Razberry V2; RFlink; PIco UPS HV3.0
-
- Posts: 6
- Joined: Wednesday 15 November 2017 22:20
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Contact:
Re: UPS Pico + Domoticz integration | New wiki page
Hi there,
I am relatively new to the Raspberry Pi and Domoticz and I am following your post on how to install the UPS PIco HV3.0A Top End on my Raspberry Pi 3 in combination with Domoticz.
I have found that at first when I check if i2c is running with the command below I didn't get a response. Only after some searching I discovered that I needed to push the "UR" button on the PIco UPS to get i2c running and be able to see the device. I am not sure it is correct that I need to do this to get i2c running.
Now after installing the python scripts I tried to check the details of my PIco UPS with the command below.
This gives me the following output:
It is clear that the script isn't working correctly, but I have no idea in which direction I should look to solve this. Maybe you can help me by giving a hint? Much appreciated.
I am relatively new to the Raspberry Pi and Domoticz and I am following your post on how to install the UPS PIco HV3.0A Top End on my Raspberry Pi 3 in combination with Domoticz.
I have found that at first when I check if i2c is running with the command below I didn't get a response. Only after some searching I discovered that I needed to push the "UR" button on the PIco UPS to get i2c running and be able to see the device. I am not sure it is correct that I need to do this to get i2c running.
Code: Select all
sudo i2cdetect -y 1
Code: Select all
sudo python pico_status.py
Code: Select all
***********************************
UPS PIco Firmware: ff
Powering Mode: ERR
BAT Volatge:
Traceback (most recent call last):
File "pico_status.py", line 74, in <module>
print " ","BAT Volatge:", bat_level(),"V"
File "pico_status.py", line 31, in bat_level
return (float(data) / 100) ValueError: could not convert string to
float: ffff
-
- Posts: 6
- Joined: Wednesday 15 November 2017 22:20
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Contact:
Re: UPS Pico + Domoticz integration | New wiki page
Back again,
I have restarted from scratch.
Started with an image file "domoticz-raspberrypi-sdcard-4834.img". This has kernel 4.1.18-v7+ #846.
Used the PIco installer script created by Siewert https://github.com/Siewert308SW/pico_installer.
The install ran successful, but after reboot I got an error message in /etc/rc.local.
After commenting out this line:
And adding this line:
Things seemed to be OK and I could successfully see the status of the PIco UPS.
The firmware version of the UPS is 0x18.
When trying to update the UPS firmware using the PIco installer script created by Siewert I get an error message saying "/dev/serial0 not found".
It seems to me like there is an incompatibility between the kernel version and the code in the script which prevents it from communicating with the UPS to do the firmware update.
I would love to hear anybody's thoughts on how to get further.
Ideally I want to update the UPS firmware to 0x38, update the kernel to the latest 4.9 version and finally be able to run domoticz again
Regards,
Dick
I have restarted from scratch.
Started with an image file "domoticz-raspberrypi-sdcard-4834.img". This has kernel 4.1.18-v7+ #846.
Used the PIco installer script created by Siewert https://github.com/Siewert308SW/pico_installer.
The install ran successful, but after reboot I got an error message in /etc/rc.local.
After commenting out this line:
Code: Select all
#echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device ( sleep 4; hwclock -s ) &
Code: Select all
sleep 4;hwclock -s &
The firmware version of the UPS is 0x18.
When trying to update the UPS firmware using the PIco installer script created by Siewert I get an error message saying "/dev/serial0 not found".
It seems to me like there is an incompatibility between the kernel version and the code in the script which prevents it from communicating with the UPS to do the firmware update.
I would love to hear anybody's thoughts on how to get further.
Ideally I want to update the UPS firmware to 0x38, update the kernel to the latest 4.9 version and finally be able to run domoticz again
Regards,
Dick
- Siewert308SW
- Posts: 288
- Joined: Monday 29 December 2014 15:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: The Netherlands
- Contact:
Re: UPS Pico + Domoticz integration | New wiki page
Script isn't designed for 4.1.18.DutchDomoticz wrote: ↑Friday 24 November 2017 22:41 Back again,
I have restarted from scratch.
Started with an image file "domoticz-raspberrypi-sdcard-4834.img". This has kernel 4.1.18-v7+ #846.
Used the PIco installer script created by Siewert https://github.com/Siewert308SW/pico_installer.
The install ran successful, but after reboot I got an error message in /etc/rc.local.
After commenting out this line:And adding this line:Code: Select all
#echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device ( sleep 4; hwclock -s ) &
Things seemed to be OK and I could successfully see the status of the PIco UPS.Code: Select all
sleep 4;hwclock -s &
The firmware version of the UPS is 0x18.
When trying to update the UPS firmware using the PIco installer script created by Siewert I get an error message saying "/dev/serial0 not found".
It seems to me like there is an incompatibility between the kernel version and the code in the script which prevents it from communicating with the UPS to do the firmware update.
I would love to hear anybody's thoughts on how to get further.
Ideally I want to update the UPS firmware to 0x38, update the kernel to the latest 4.9 version and finally be able to run domoticz again
Regards,
Dick
Maybe i made a typo, haven't looked at the script for a long time, the script should abort on 4.1.18.
You could try to update to the latest kernel and then run the installer again as i tested it on 4.9.
I do have a other unpublished script which you could try also.
Setup:
- RPi4 - Domo Stable / Aeotec Z-stick7 / PiHole Unbound Gemini
- RPi4 - PiHole / PiVPN Unbound Gemini
- Synology DS923+ / DS218j
- P1 Gas/Power, SmartGateway watermeter
- Fibaro switches, contacts, plugs, smoke/Co2 ect
- rootfs @ USB HDD
- RPi4 - Domo Stable / Aeotec Z-stick7 / PiHole Unbound Gemini
- RPi4 - PiHole / PiVPN Unbound Gemini
- Synology DS923+ / DS218j
- P1 Gas/Power, SmartGateway watermeter
- Fibaro switches, contacts, plugs, smoke/Co2 ect
- rootfs @ USB HDD
-
- Posts: 6
- Joined: Wednesday 15 November 2017 22:20
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Contact:
Re: UPS Pico + Domoticz integration | New wiki page
Hi,Siewert308SW wrote: ↑Friday 24 November 2017 22:57Script isn't designed for 4.1.18.DutchDomoticz wrote: ↑Friday 24 November 2017 22:41 Back again,
I have restarted from scratch.
Started with an image file "domoticz-raspberrypi-sdcard-4834.img". This has kernel 4.1.18-v7+ #846.
Used the PIco installer script created by Siewert https://github.com/Siewert308SW/pico_installer.
The install ran successful, but after reboot I got an error message in /etc/rc.local.
After commenting out this line:And adding this line:Code: Select all
#echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device ( sleep 4; hwclock -s ) &
Things seemed to be OK and I could successfully see the status of the PIco UPS.Code: Select all
sleep 4;hwclock -s &
The firmware version of the UPS is 0x18.
When trying to update the UPS firmware using the PIco installer script created by Siewert I get an error message saying "/dev/serial0 not found".
It seems to me like there is an incompatibility between the kernel version and the code in the script which prevents it from communicating with the UPS to do the firmware update.
I would love to hear anybody's thoughts on how to get further.
Ideally I want to update the UPS firmware to 0x38, update the kernel to the latest 4.9 version and finally be able to run domoticz again
Regards,
Dick
Maybe i made a typo, haven't looked at the script for a long time, the script should abort on 4.1.18.
You could try to update to the latest kernel and then run the installer again as i tested it on 4.9.
I do have a other unpublished script which you could try also.
picotoolkit.zip
I tried it again several times. Now based on Jessie 4.9. Several times with pico_installer.sh and several times with picotoolkit.sh. Every time I ran into communication issues where the software can't read the status of the PIco UPS. I think the combination of Jessie 4.9 and PIco UPS firmware 0x18 isn't going to work. Maybe if I can get the PIco UPS firmware to a newer version I can make it work. The problem is that I don't know if that is possible in another way then I have tried so far.
Any suggestions?
Regards,
Dick
-
- Posts: 223
- Joined: Sunday 30 March 2014 15:24
- Target OS: Linux
- Domoticz version: Beta
- Location: Waterland
- Contact:
Re: UPS Pico + Domoticz integration | New wiki page
I'm sorry that came back to this old post but I have some trouble with your script. This is what the output is. I als did a new install but that gave the same output.Siewert308SW wrote: ↑Friday 24 November 2017 22:57Script isn't designed for 4.1.18.DutchDomoticz wrote: ↑Friday 24 November 2017 22:41 Back again,
I have restarted from scratch.
Started with an image file "domoticz-raspberrypi-sdcard-4834.img". This has kernel 4.1.18-v7+ #846.
Used the PIco installer script created by Siewert https://github.com/Siewert308SW/pico_installer.
The install ran successful, but after reboot I got an error message in /etc/rc.local.
After commenting out this line:And adding this line:Code: Select all
#echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device ( sleep 4; hwclock -s ) &
Things seemed to be OK and I could successfully see the status of the PIco UPS.Code: Select all
sleep 4;hwclock -s &
The firmware version of the UPS is 0x18.
When trying to update the UPS firmware using the PIco installer script created by Siewert I get an error message saying "/dev/serial0 not found".
It seems to me like there is an incompatibility between the kernel version and the code in the script which prevents it from communicating with the UPS to do the firmware update.
I would love to hear anybody's thoughts on how to get further.
Ideally I want to update the UPS firmware to 0x38, update the kernel to the latest 4.9 version and finally be able to run domoticz again
Regards,
Dick
Maybe i made a typo, haven't looked at the script for a long time, the script should abort on 4.1.18.
You could try to update to the latest kernel and then run the installer again as i tested it on 4.9.
I do have a other unpublished script which you could try also.
picotoolkit.zip
The battery status is not ok. I'm still on jessy and I have have Pi 3b.
[*] PIco HV3.0a UPS Toolkit [*]
[*] Version : 2.0 [*]
[*] Updated : 27 Jan 2018 [*]
[*] Created By : Siewert308SW [*]
[*] GitHub : http://bit.ly/2fkTaGz [*]
[*] Dev Thread : http://bit.ly/2hz7vzT [*]
=================================================================================
1) Install - PIco HV3.0A
2) Remove - PIco HV3.0A
3) Status - PIco HV3.0A
4) Quit
#? 3
____ ___ _ ___ _______ ___ _ _ _ ____ ____
| _ \_ _|___ ___ | | | \ \ / /___ / / _ \ / \ | | | | _ \/ ___|
| |_) | |/ __/ _ \ | |_| |\ \ / / |_ \| | | |/ _ \ | | | | |_) \___ \
| __/| | (_| (_) | | _ | \ V / ___) | |_| / ___ \ | |_| | __/ ___) |
|_| |___\___\___/ |_| |_| \_/ |____(_)___/_/ \_\ \___/|_| |____/
.~~. .~~.
'. \ ' ' / .'
: .~.'~'.~. : _____ _ _ ___ _
: .~.'~'.~. : |_ _|__ ___ | | |/ (_) |_
~ ( ) ( ) ~ | |/ _ \ / _ \| | /| | _|
( : '~'.~.'~' : ) | | (_) | (_) | | \| | |_
~ .~ ( ) ~. ~ |_|\___/ \___/|_|_|\_\_|\__|
( : '~' : )
'~ .~~~. ~'
'~'
::: PIco HV3.0a Status
=================================================================================
**********************************************
* UPS PIco HV3.0A Status *
* Version 6.0 *
**********************************************
- PIco Firmware..........: 38
- PIco Bootloader........: 50
- PIco PCB Version.......: 41
- PIco BAT Version.......: LiPO (ASCII: P)
- PIco BAT Runtime.......: 1 MIN
- PIco rs232 State.......: OFF
- Powering Mode..........: RPi POWERED
- Charger State..........: CHARGING
- Battery Percentage.....: -300 %
- Battery Voltage........: 0.7 V
- RPi Voltage............: 5.3 V
- RPi CPU Temperature....: 70.9 C
- NTC1 Temperature.......: 53 C
- TO-92 Temperature......: 11 C
- PIco FAN Mode..........: AUTOMATIC
- PIco FAN Temp Threshold: 35 C
**********************************************
* Powered by PiModules *
**********************************************
=================================================================================
1) Install - PIco HV3.0A
2) Remove - PIco HV3.0A
3) Status - PIco HV3.0A
4) Quit
#?
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
-
- Posts: 265
- Joined: Monday 05 February 2018 8:42
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 12467
- Location: Netherlands, near Haarlem
- Contact:
Re: UPS Pico + Domoticz integration | New wiki page
@jfhautenauven
I know this is an old post, but I tried your script in my setup. Thank you.
But it is working partially.
I have an RPi 3B, with UPS PIco HV3.0B and large battery.
I made the dummy switches and edited the python script. But now I get strange values.
- UPS Pico firmware version: 00
- UPS Pico battery voltage: 49V
- UPS Pico RPi voltage: 49.04V
- UPS Pico power source: RpI powered (that's fine I assume).
- UPS Pico battery level: 5700%
- UPS Pico battery temp: 0 (degrees Celsius)
Is it possible to move the comma?
How to fix the battery temp?
How to fix the firmware version? I have firmware EC.
How to fix the battery level to 106%?
Status.py:
***********************************
UPS PIco HV3.0A Status
***********************************
UPS PIco Firmware.....: ec
UPS PIco Bootloader...: 53
UPS PIco PCB Version..: 42
UPS PIco BAT Version..: LiPO (ASCII: S)
UPS PIco BAT Runtime..: TIMER DISABLED
UPS PIco r232 State...: OFF
Powering Mode.........: RPi POWERED
BAT Percentage........: 106.666666667 %
BAT Voltage...........: 4.2 V
RPi Voltage...........: 5.4 V
NTC1 Temperature......: 52 C
TO-92 Temperature.....: 14 C
Extended Voltage......: 0.0 V
A/D2 Voltage..........: 0.0 V
I know this is an old post, but I tried your script in my setup. Thank you.
But it is working partially.
I have an RPi 3B, with UPS PIco HV3.0B and large battery.
I made the dummy switches and edited the python script. But now I get strange values.
- UPS Pico firmware version: 00
- UPS Pico battery voltage: 49V
- UPS Pico RPi voltage: 49.04V
- UPS Pico power source: RpI powered (that's fine I assume).
- UPS Pico battery level: 5700%
- UPS Pico battery temp: 0 (degrees Celsius)
Is it possible to move the comma?
How to fix the battery temp?
How to fix the firmware version? I have firmware EC.
How to fix the battery level to 106%?
Status.py:
***********************************
UPS PIco HV3.0A Status
***********************************
UPS PIco Firmware.....: ec
UPS PIco Bootloader...: 53
UPS PIco PCB Version..: 42
UPS PIco BAT Version..: LiPO (ASCII: S)
UPS PIco BAT Runtime..: TIMER DISABLED
UPS PIco r232 State...: OFF
Powering Mode.........: RPi POWERED
BAT Percentage........: 106.666666667 %
BAT Voltage...........: 4.2 V
RPi Voltage...........: 5.4 V
NTC1 Temperature......: 52 C
TO-92 Temperature.....: 14 C
Extended Voltage......: 0.0 V
A/D2 Voltage..........: 0.0 V
Domoticz 2020.1 (12230) on Raspberry Pi 3B with Raspian Buster. Besides Domoticz, Rpi is running Pi-Hole.
Who is online
Users browsing this forum: No registered users and 1 guest