domoticz in synology as package! Available now.

Others (MiLight, Hue, Toon etc...)

Moderator: leecollings

User avatar
Egregius
Posts: 2582
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: domoticz in synology as package! Available now.

Post by Egregius »

I have 3.5052.
On DSM6 you'll need another repo.
User avatar
mvveelen
Posts: 678
Joined: Friday 31 October 2014 10:22
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Hoorn, The Netherlands
Contact:

Re: domoticz in synology as package! Available now.

Post by mvveelen »

I'm not using DSM6 yet. Don't want to mess things up. I keep reading a lot of things that aren't ready yet for DSM6.
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
User avatar
mvveelen
Posts: 678
Joined: Friday 31 October 2014 10:22
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Hoorn, The Netherlands
Contact:

Re: domoticz in synology as package! Available now.

Post by mvveelen »

-> Wow, Jumbotroll......thanks for the update :D !
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
anatopeck
Posts: 12
Joined: Wednesday 06 April 2016 14:36
Target OS: NAS (Synology & others)
Domoticz version: last one
Location: france
Contact:

Re: domoticz in synology as package! Available now.

Post by anatopeck »

Hello,
To update to version 5070, should I uninstall the previous version ?
What is the news on 5070 ?

Yesterday I tryed to install a new wall plug (greenwave ns310f) but I failed, Domoticz do not reconize the device, someone got a idea ? :)
thx
Synology DS214play (DSM 6.0.1-7393 Update 1)
Domoticz Version: always the last one
Aeon Labs Z-Stick Gen5 - Version: 1.4-305-g150a299-dirty
Netatmo + module ext - Fibraro stuff - broadlink rm2
User avatar
mvveelen
Posts: 678
Joined: Friday 31 October 2014 10:22
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Hoorn, The Netherlands
Contact:

Re: domoticz in synology as package! Available now.

Post by mvveelen »

Why should you uninstall Domoticz? I can't see why. I also can't see which version you are using at the moment, but the way I do it:

Backup the DB and then update from the package center. It should run right after it's finished.
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
anatopeck
Posts: 12
Joined: Wednesday 06 April 2016 14:36
Target OS: NAS (Synology & others)
Domoticz version: last one
Location: france
Contact:

Re: domoticz in synology as package! Available now.

Post by anatopeck »

Synology DS214play (DSM 6.0-7321) - Domoticz (3.0.4834-7)
Aeon Labs Z-Stick Gen5

Thank I'm gonna try again, but I can not find a update switch
Synology DS214play (DSM 6.0.1-7393 Update 1)
Domoticz Version: always the last one
Aeon Labs Z-Stick Gen5 - Version: 1.4-305-g150a299-dirty
Netatmo + module ext - Fibraro stuff - broadlink rm2
anatopeck
Posts: 12
Joined: Wednesday 06 April 2016 14:36
Target OS: NAS (Synology & others)
Domoticz version: last one
Location: france
Contact:

Re: domoticz in synology as package! Available now.

Post by anatopeck »

I tryed to update => not available
I uninstalled 3.0.4834 but 5070 not available as a new package
Synology DS214play (DSM 6.0.1-7393 Update 1)
Domoticz Version: always the last one
Aeon Labs Z-Stick Gen5 - Version: 1.4-305-g150a299-dirty
Netatmo + module ext - Fibraro stuff - broadlink rm2
User avatar
Egregius
Posts: 2582
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: domoticz in synology as package! Available now.

Post by Egregius »

I think you need the beta repo.
http://www.jadahl.com/domoticz_beta_6/
That one gives me now 3.5052
User avatar
Egregius
Posts: 2582
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: domoticz in synology as package! Available now.

Post by Egregius »

And I think you can see here wich version is available:
http://www.jadahl.com/domoticz_beta_6/i ... llist=true
anatopeck
Posts: 12
Joined: Wednesday 06 April 2016 14:36
Target OS: NAS (Synology & others)
Domoticz version: last one
Location: france
Contact:

Re: domoticz in synology as package! Available now.

Post by anatopeck »

Egregius wrote:I think you need the beta repo.
http://www.jadahl.com/domoticz_beta_6/
That one gives me now 3.5052
Yes thank I am just undestanding 5070 was a beta :oops:
Synology DS214play (DSM 6.0.1-7393 Update 1)
Domoticz Version: always the last one
Aeon Labs Z-Stick Gen5 - Version: 1.4-305-g150a299-dirty
Netatmo + module ext - Fibraro stuff - broadlink rm2
anatopeck
Posts: 12
Joined: Wednesday 06 April 2016 14:36
Target OS: NAS (Synology & others)
Domoticz version: last one
Location: france
Contact:

Re: domoticz in synology as package! Available now.

Post by anatopeck »

Someone already install a wall plug (greenwave ns310f) on Domoticz
It can't reconize the device :(
thx
Synology DS214play (DSM 6.0.1-7393 Update 1)
Domoticz Version: always the last one
Aeon Labs Z-Stick Gen5 - Version: 1.4-305-g150a299-dirty
Netatmo + module ext - Fibraro stuff - broadlink rm2
Eternity
Posts: 63
Joined: Saturday 06 December 2014 16:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: domoticz in synology as package! Available now.

Post by Eternity »

@anatopeck

I have 3 of those and 2 Greenwave wall plug's with 5 outputs. All running smoothly.

Are you sure you are pressing the right button to pair it with Domoticz? The manual is misleading; use the small button at the bottom!
Synology DS218+
Homey controller
Z-Wave stuff (Fibaro / Aeotec / NEO Coolcam)
Zigbee stuff (Aqara)
HUE lights
Logitech Harmony Ultimate + Hub
IP camera's
anatopeck
Posts: 12
Joined: Wednesday 06 April 2016 14:36
Target OS: NAS (Synology & others)
Domoticz version: last one
Location: france
Contact:

Re: domoticz in synology as package! Available now.

Post by anatopeck »

Thank you for your reply
Yes I selected 1 (or other except black and lock) and I press the small button at the botton then the green ring is turning then flashing at the end but domoticz say : "device not found"
Synology DS214play (DSM 6.0.1-7393 Update 1)
Domoticz Version: always the last one
Aeon Labs Z-Stick Gen5 - Version: 1.4-305-g150a299-dirty
Netatmo + module ext - Fibraro stuff - broadlink rm2
Eternity
Posts: 63
Joined: Saturday 06 December 2014 16:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: domoticz in synology as package! Available now.

Post by Eternity »

Are you
- "accepting new hardware' in Domoticz?
- close to the controller?

You could also try to reset the GreenWave completely. That makes sure it is not paired already (but to a different controller). Remove it from the wall socket. Press the little button and - keeping it pressed - insert in the wall socket. The GreenWave should now be reset to factory default.

After that, try to include it again!
Synology DS218+
Homey controller
Z-Wave stuff (Fibaro / Aeotec / NEO Coolcam)
Zigbee stuff (Aqara)
HUE lights
Logitech Harmony Ultimate + Hub
IP camera's
anatopeck
Posts: 12
Joined: Wednesday 06 April 2016 14:36
Target OS: NAS (Synology & others)
Domoticz version: last one
Location: france
Contact:

Re: domoticz in synology as package! Available now.

Post by anatopeck »

Eternity wrote:Are you
- "accepting new hardware' in Domoticz? ----> YES
- close to the controller? -----> 1.5 meters

You could also try to reset the GreenWave completely. That makes sure it is not paired already (but to a different controller). Remove it from the wall socket. Press the little button and - keeping it pressed - insert in the wall socket. The GreenWave should now be reset to factory default.

After that, try to include it again!
I reset the greenwave as you said
I tryed 10 times I still have the message "failed time out "
Synology DS214play (DSM 6.0.1-7393 Update 1)
Domoticz Version: always the last one
Aeon Labs Z-Stick Gen5 - Version: 1.4-305-g150a299-dirty
Netatmo + module ext - Fibraro stuff - broadlink rm2
User avatar
Egregius
Posts: 2582
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: domoticz in synology as package! Available now.

Post by Egregius »

Seems that the start-stop-status scripts work after all :)

Now I have this in a every minute schedule:
If domoticz is offline for more than 30 seconds it gets restarted without reboot of the syno. A copy of the logfile is saved to find out why it stopped.

Code: Select all

#!/bin/bash
	DOMOTICZ=`curl -s --connect-timeout 2 --max-time 5 "http://127.0.0.1:8084/json.htm?type=devices&rid=1"`
	STATUS=`echo $DOMOTICZ | jq -r '.status'`
	if [ "$STATUS" == "OK" ] ; then
		exit
	else
		sleep 15
		DOMOTICZ=`curl -s --connect-timeout 2 --max-time 5 "http://127.0.0.1:8084/json.htm?type=devices&rid=1"`
		STATUS2=`echo $DOMOTICZ | jq -r '.status'`
		if [ "$STATUS2" == "OK" ] ; then
			exit
		else
			sleep 15
			DOMOTICZ=`curl -s --connect-timeout 2 --max-time 5 "http://127.0.0.1:8084/json.htm?type=devices&rid=1"`
			STATUS3=`echo $DOMOTICZ | jq -r '.status'`
			if [ "$STATUS3" == "OK" ] ; then
				exit
			else
				curl -s --connect-timeout 2 --max-time 5 --data-urlencode "text=Domoticz Bad - Restarting" --data "silent=false" https://127.0.0.1/secure/telegram.php
				NOW=$(date +"%Y-%m-%d_%H%M%S")
				cp /volume1/appstore/domoticz/var/domoticz.log /volume1/files/temp/domoticz-$NOW.txt
				sudo /var/packages/domoticz/scripts/start-stop-status stop
				sudo /var/packages/domoticz/scripts/start-stop-status start
			fi
		fi
	fi
Eternity
Posts: 63
Joined: Saturday 06 December 2014 16:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: domoticz in synology as package! Available now.

Post by Eternity »

Cool Egregius!

Could you explain how you saved the script, where you stored it on the Syno and how you run it...please...?
Thanks!

@anatopeck
I am sorry I can't help you with this. Perhaps the PowerNode is broken?
Synology DS218+
Homey controller
Z-Wave stuff (Fibaro / Aeotec / NEO Coolcam)
Zigbee stuff (Aqara)
HUE lights
Logitech Harmony Ultimate + Hub
IP camera's
User avatar
Egregius
Posts: 2582
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: domoticz in synology as package! Available now.

Post by Egregius »

I'm just using the built-in task sheduler of Syno:
(mine has a 'all' argument because I can call it to just do time-critical stuff, or to do everything)
Image

Create the script and set it executable with chmod +x cron.sh.
Location isn't that important, easiest is where you can easy open it to change.
Eternity
Posts: 63
Joined: Saturday 06 December 2014 16:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: domoticz in synology as package! Available now.

Post by Eternity »

That's quick!

A noob question, how do I
set it executable with chmod +x cron.sh.
:roll:
Synology DS218+
Homey controller
Z-Wave stuff (Fibaro / Aeotec / NEO Coolcam)
Zigbee stuff (Aqara)
HUE lights
Logitech Harmony Ultimate + Hub
IP camera's
User avatar
Egregius
Posts: 2582
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: domoticz in synology as package! Available now.

Post by Egregius »

log in with ssh
chmod +x /volume1/path/script.sh

test is by typing
/volume1/path/script.sh
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests