Pilot: Home Automation Control (iOS app)

Moderator: leecollings

User avatar
jvdz
Posts: 2206
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Pilot: Home Automation Control (iOS app)

Post by jvdz »

All commits are listed in GitHub, but setting up that reverse proxy is much simpler and faster to implement. ;)
I've tested it in a standalone docker container for fun and it's really easy to create this work-around.
I can share the details in case there is a real interest. :D
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
User avatar
mvveelen
Posts: 686
Joined: Friday 31 October 2014 10:22
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Hoorn, The Netherlands
Contact:

Re: Pilot: Home Automation Control (iOS app)

Post by mvveelen »

jvdz wrote: Friday 03 January 2025 17:47 All commits are listed in GitHub, but setting up that reverse proxy is much simpler and faster to implement. ;)
I've tested it in a standalone docker container for fun and it's really easy to create this work-around.
I can share the details in case there is a real interest. :D
I have Domoticz running in a Raspberry Pi 3B+, can you also share steps I need to take then?
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
User avatar
jvdz
Posts: 2206
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Pilot: Home Automation Control (iOS app)

Post by jvdz »

This is what I have set up in docker using portainer as docker GUI, but you can also use composer as well:
  • Create a persistent storage directory for this container on your PI. I use /data/docker/domo_rev_oldapi as the base directory.
  • Create subdirectory templates and add the file default.conf.template from the attached zip.
  • Use the below Docker compose info to create a new stack in portainer or file for docker compose, and update any of the required info:
    • The DomoticzURL to be used for both http and https input ports.
    • Update the input ports to what you like to use (only the left port number, do not change the right port number!).
      I have added a 1 to my actual ports use by domoticz to keep it simple.
      Add an # in front of the port in case you don't want to use it.
    • Update the volume section to point to the correct directory on your PI.
    • When you want to use https, a cert is required, and I have pointed that to the original supplied domoticz pem file.
      Define here what you use.
    • The extra_hosts definition is what docker is using to connect to its HOST server.
  • Now you can create the container and check if it is running by pointing your browser to the defined input port(s).
  • When that works, you can try to update the pilot app to point to this new input port and the proxy should now do the translation from the old API format to the new.


Hope it is all clear, but else just ask.


Docker Stack info:

Code: Select all

services:
  nginx:
    image: nginx:stable-alpine-slim
    environment:
      ### Define the target url for domoticz either the http or https version
      ### use host.docker.internal when running docker on the same host as Domoticz
      DomoticzURL: 'https://host.docker.internal:8443' 
      ###  or use the actual HOSTNAME or ip address for the domoticz server
      #DomoticzURL: 'https://192.168.0.123:8443' 
    
    ports:
      ### define a free input port for the http url to proxy to domoticz url
      - "18080:8080"
      ### define a free input port for the https url to proxy to domoticz url
      - "18443:443"
    
    volumes:
      ### Define template directory used by the docker container. (required)
      - /data/docker/domo_rev_oldapi/templates:/etc/nginx/templates
      
      ### target directory for the generated default.conf in case you like to see the result. (optional)
      #- /data/docker/domo_rev_oldapi/conf.d:/etc/nginx/conf.d
      
      ### Define ssl directory used by the docker container. (required for reverse proxy of https. use same files as used by domoticz)
      - /home/pi/domoticz/server_cert.pem:/etc/nginx/ssl/server_cert.pem
      
      ### Define log directory used by NGINX.
      - /data/docker/domo_rev_oldapi/log:/var/log/nginx
    
    extra_hosts:
      ### Extra host to reverse proxy back into the Docker HOST server.
      - "host.docker.internal:host-gateway"
    
Attachments
default.conf.template.zip
(719 Bytes) Downloaded 7 times
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
zxdscp
Posts: 6
Joined: Tuesday 31 December 2024 13:57
Target OS: Linux
Domoticz version: 2024.7
Contact:

Re: Pilot: Home Automation Control (iOS app)

Post by zxdscp »

ednl wrote: Monday 30 December 2024 23:48
waltervl wrote: Monday 30 December 2024 23:26 Depends from what version you updated. It cannot be from a 2024.x version. You post that post in June 2023. 2023.2 is released in July 2023. So it is definitely related to the Domoticz API update of 2023.2.
Hmm, weird. Same issue here. Pilot worked fine with Domoticz 2024.7 from July 2024, but stopped working with build 16401.
Exactly the same things for me !
Worked fine under Domoticz 20024.7 but stop to work since i updated Domoticz to Beta, at the beginning of january i thing, because i wanted to solve an issue with the persistance of login to the netatmo server for my thermostat connected.
Finally my first bad idea of the new year... :cry:
zxdscp
Posts: 6
Joined: Tuesday 31 December 2024 13:57
Target OS: Linux
Domoticz version: 2024.7
Contact:

Re: Pilot: Home Automation Control (iOS app)

Post by zxdscp »

mvveelen wrote: Monday 30 December 2024 21:33
waltervl wrote: Sunday 29 December 2024 21:52
mvveelen wrote: Sunday 29 December 2024 20:40 Unfortunately, since the last Beta update of Domoricz (2024.7 (build 16401)), I see no devices anymore in Pilot. I can see the log, so there is a connection, but I can't see any devices.

I hope it can be fixed, because I rely on Pilot for some switches and also geofencing.
This is not related to latest Domoticz beta but an API update in Domoticz 2023.2. So more than a year ago. So I hope for you the app will be updated (but is not updated for a long time now).
See my post about that: viewtopic.php?p=303764#p303764

And it was working until a few days ago. After updating Domoticz from the prior last version to the current last version (beta). So it must have something to do with the latest beta update and I see that I'm not the only one with this problem.

I've sent an email to the creator of Pilot, but I'm not sure if I will get a reply, especially during this time of the year.

Installing reverse proxies etc. is not my cup of tea....
Hi mvveelen,
Did you received an answer from the creator of Pilot ?
User avatar
mvveelen
Posts: 686
Joined: Friday 31 October 2014 10:22
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Hoorn, The Netherlands
Contact:

Re: Pilot: Home Automation Control (iOS app)

Post by mvveelen »

No, he didn't answer. Meanwhile I made a new installation with an older Domoticz version which I didn't update and Pilot works.

Too bad it isn't updated to work with the latest Beta.
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
Dave21w
Posts: 369
Joined: Sunday 29 November 2015 21:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: UK
Contact:

Re: Pilot: Home Automation Control (iOS app)

Post by Dave21w »

I am still on 2024.7 so still working however this is quite annoying as I have my pilot app set as a subscription every year to support the developer but if he is not updating then i will be cancelling that.
zxdscp
Posts: 6
Joined: Tuesday 31 December 2024 13:57
Target OS: Linux
Domoticz version: 2024.7
Contact:

Re: Pilot: Home Automation Control (iOS app)

Post by zxdscp »

mvveelen wrote: Wednesday 15 January 2025 12:31 No, he didn't answer. Meanwhile I made a new installation with an older Domoticz version which I didn't update and Pilot works.

Too bad it isn't updated to work with the latest Beta.
I also sent an e-mail to this address “[email protected]” but received no reply.
So I went ahead and installed the HomeBridge-eDomoticz plugin.
I got the essential functions I was interested in.
User avatar
madpatrick
Posts: 645
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Pilot: Home Automation Control (iOS app)

Post by madpatrick »

zxdscp wrote: Sunday 19 January 2025 14:53 I also sent an e-mail to this address “[email protected]” but received no reply.
So I went ahead and installed the HomeBridge-eDomoticz plugin.
I got the essential functions I was interested in.
HomeBridge-eDomoticz is indeed a good plugin, but i looks that it also not maintained any more for a while
Also the Groups function is not available
-= HP server GEN8 Xeon(R) E3-1220L_V2 -=- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.12b on Tab8" =-
User avatar
kiddigital
Posts: 437
Joined: Thursday 10 August 2017 6:52
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Pilot: Home Automation Control (iOS app)

Post by kiddigital »

Question: what can the Pilot app do which you cannot do with Domoticz own UI? (Or other apps)?
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
homeJLB
Posts: 61
Joined: Tuesday 16 October 2018 23:01
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: Belgium
Contact:

Re: Pilot: Home Automation Control (iOS app)

Post by homeJLB »

kiddigital wrote: Sunday 19 January 2025 17:25 Question: what can the Pilot app do which you cannot do with Domoticz own UI? (Or other apps)?
Looking through this post and myself using HomeBridge This is to interact the devices in HomeKit from Apple Home
elmardam
Posts: 12
Joined: Wednesday 30 August 2017 14:31
Target OS: -
Domoticz version:
Contact:

Re: Pilot: Home Automation Control (iOS app)

Post by elmardam »

Did you figure this out?
The Domoticz app on IOS has the same problem..
homeJLB
Posts: 61
Joined: Tuesday 16 October 2018 23:01
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: Belgium
Contact:

Re: Pilot: Home Automation Control (iOS app)

Post by homeJLB »

User avatar
madpatrick
Posts: 645
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Pilot: Home Automation Control (iOS app)

Post by madpatrick »

homeJLB wrote: Thursday 06 February 2025 12:33 Maybe try https://github.com/jcwlim/homebridge-edomoticz-ui-x
Thos is working for all features and not maintained anymore for a longtime
-= HP server GEN8 Xeon(R) E3-1220L_V2 -=- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.12b on Tab8" =-
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests