Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Irrigation System #180

Open
miticolars opened this issue Aug 26, 2020 · 18 comments
Open

Irrigation System #180

miticolars opened this issue Aug 26, 2020 · 18 comments
Labels

Comments

@miticolars
Copy link

Hi, thank you for your work and for this plugin. Is it possible to configure an Irrigation System with this plugin? I've a KNX relay module that drives some valves of my irrigation system and I would to control it with homebridge. Thank you.

@snowdd1
Copy link
Owner

snowdd1 commented Aug 26, 2020

That might be possible, I think there are services for irrigation and valves. But I don't have any so I cannot test that myself.

@miticolars
Copy link
Author

Yes, there is the IrrigationSystem service but is not clear how can I set the knx_config.json to use my knx relay module (obviously I know all the knx address needed). Or if needed to develop some code. Thank you

@marcobastianon
Copy link

hi @miticolars i'm plaing to crate some irigation zone using ( like you ) knx switch.. i've create this configuration:

    {
        "DeviceName": "Goccia Aiuola",
        "Services": [
            {
                "ServiceType": "IrrigationSystem",
                "ServiceName": "Goccia Aiuola",
                "Characteristics": [
                    {
                        "Type": "Active",
                        "Set": ["1/1/68"],
                        "Listen": ["1/2/68"]
                    },
                    {"Type": "ProgramMode"},
                    {
                        "Type": "InUse",
                        "Listen": ["1/2/68"]
                    },
                    {"Type": "RemainingDuration"}
                ]
            }
        ],
    },

i've status of irrigation correctly, but if i click on the icon nothing start.

@miticolars
Copy link
Author

Hi Marco, thank you. I think that IrrigationSystem must include some valves (zones), but I don’t know the correct syntax. I’m working on it. Paolo

@miticolars
Copy link
Author

@marcobastianon I tried changing the Service from IrrigationSystem to Valve and it works, but I would to use the IrrigationSystem Service to drive my valves. Let me know if you find some way to do it. Thanks!

@marcobastianon
Copy link

marcobastianon commented Sep 4, 2020

maybe we need to write this service?

"Type": "Active",
"Set": ["1/1/68"],
"Listen": ["1/2/68"]

in my systen this "type" do nothing, clicching on the icon give me only the status.

"Type": "InUse",
"Listen": ["1/2/68"]

this works beacuse change the icon (i've connected 1/2/68 @status of light 1/1/68 and i can turn on and off uning normal light)

@miticolars
Copy link
Author

miticolars commented Sep 11, 2020

@marcobastianon try this:

{
	"DeviceName": "Goccia aiuola",
	"Services": [
		{                                    
			"ServiceType": "Valve",          
			"ServiceName": "Goccia aiuola",           
			"Characteristics": [             
				{                            
					"Type": "Active",        
					"Set": [                 
						"1/1/68"              
					],                       
					"Listen": [              
						"1/1/68"              
					],                       
					"DPT": "DPT1"            
				},                           
				{                            
					"Type": "InUse",         
					"Listen": [              
						"1/1/68"             
					],                       
					"DPT": "DPT1"            
				},                           
				{                            
					"Type": "ValveType"      
				},                           
				{                            
					"Type": "SetDuration"    
				},                           
				{                             
					"Type": "RemainingDuration" 
				}                               
			]
		}                                       
	]
}

The icon is not the correct one (I would want to see the sprinkler icon and not the faucet) and the timer doesn't work.
Bye

-- edit: using three backticks instead of one to format code

@marcobastianon
Copy link

how can we set { "Type": "ValveType" } to 1?

@miticolars
Copy link
Author

how can we set { "Type": "ValveType" } to 1?

I don't know how to do it, if you find the solution just let me know

@snowdd1
Copy link
Owner

snowdd1 commented Sep 16, 2020

how can we set { "Type": "ValveType" } to 1?

I don't know how to do it, if you find the solution just let me know

You could use a group address that answers with 1 - in that case no programming required. Of course you need to have such an address.

@miticolars
Copy link
Author

how can we set { "Type": "ValveType" } to 1?

I don't know how to do it, if you find the solution just let me know

You could use a group address that answers with 1 - in that case no programming required. Of course you need to have such an address.

yeah, that's a solution, i try to find an address that can be useful in this way. Thanks!

@marcobastianon
Copy link

marcobastianon commented Sep 16, 2020

@snowdd1 thx!!
image

works!! super fantastik!

i need only to work with default time.. start all time @00.00 infinite

now i've only the temperature issue :) realy lovely!!

@miticolars
Copy link
Author

@snowdd1 thx!!
image

works!! super fantastik!

i need only to work with default time.. start all time @00.00 infinite

now i've only the temperature issue :) realy lovely!!

@marcobastianon can you use the timer to run the sprinkler (remaining time, etc...)?

@marcobastianon
Copy link

no, i've added "SetDuration" and i can see on bus 300s (5min) but nothing decrease and time is still 00.00 (infinite) i think we need to decrees using handler or from knx logic module. (i preff from handler)

@miticolars
Copy link
Author

how can we set { "Type": "ValveType" } to 1?

I don't know how to do it, if you find the solution just let me know

You could use a group address that answers with 1 - in that case no programming required. Of course you need to have such an address.

I don't have an address that answer always 1. I have an address that answer always 0, but the Reverse attribute doesn't work (if I understand what this atrribute do).

@marcobastianon
Copy link

marcobastianon commented Sep 16, 2020 via email

@ctschach
Copy link
Contributor

I have created an custom handler which also supports the timer when using the eve app.

You can head over to

https://github.com/ctschach/homebridge-knx

and test out this version. I'm about to do some final clean ups and then submit a pull request.

@miticolars
Copy link
Author

I have created an custom handler which also supports the timer when using the eve app.

You can head over to

https://github.com/ctschach/homebridge-knx

and test out this version. I'm about to do some final clean ups and then submit a pull request.

Thank you for your time and your job!
I tested your version and I'm able to set the correct sprinkler icon and the timer.

Great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants