plmilord / Hass.io-custom-component-spaclient

Home Assistant integration - Spa Client
48 stars 16 forks source link

How to change ready / rest mode? #9

Closed enkrypt3d closed 2 years ago

enkrypt3d commented 2 years ago

I just got this installed and this is great! Is there a feature that can be added to control if the spa is in ready or rest mode? I want to be able to schedule that. Rest mode at night and ready during the day (for solar) thanks!

AlohaFlyer commented 2 years ago

I just made an HA automation to turn my hot tub to vacation mode automatically late at night... and it stays there, the circ pumps still work every few hours... but we have to request that the hot tub be heated via a button in lovelace or an alexa request. Here is my automation:

alias: Auto_Hot_Tub description: '' trigger:

enkrypt3d commented 2 years ago

What does "Turn HVAC mode on Spa Thermostat" do? Thanks for your help!

AlohaFlyer commented 2 years ago

I'm not sure really....

AlohaFlyer commented 2 years ago

Here is the lovelace card I made for the front end.

type: entities entities:

AlohaFlyer commented 2 years ago

Image 10-26-21 at 6 41 PM

enkrypt3d commented 2 years ago

Awesome! I got it to work by toggling heat mode at night and then turning it back on during the day. huge thanks!

On Wed, Oct 27, 2021, 12:43 AM Ryan Pettit @.***> wrote:

[image: Image 10-26-21 at 6 41 PM] https://user-images.githubusercontent.com/23268691/139001286-b0b709cc-3d42-469d-a404-0ae01f6eaf76.png

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/plmilord/Hass.io-custom-component-spaclient/issues/9#issuecomment-952533787, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWHLHRTNADFIHLLYVAS7KQTUI57PBANCNFSM5GZKI7TA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

enkrypt3d commented 2 years ago

image

Having this error when trying to add your custom card...

plmilord commented 2 years ago

Have you get through your error when trying to add your custom card?

Any trouble with Spa Client add-on?

enkrypt3d commented 2 years ago

The home assistant automations I setup work great - I guess it's the formatting it doesn't like? I was able to add one of the default cards to the dashboard which seems to suffice for now.

On Sat, Nov 6, 2021 at 10:41 AM Pierre-Luc Milord @.***> wrote:

Have you get through your error when trying to add your custom card?

Any trouble with Spa Client add-on?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/plmilord/Hass.io-custom-component-spaclient/issues/9#issuecomment-962461381, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWHLHRRA5QOGE4Y6OYZBEA3UKVECBANCNFSM5GZKI7TA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

plmilord commented 2 years ago

Good to hear!

To help develop this component, can you share your spa setup? See the printout in home-assistant.log ... in particular the sections Information variables and Configuration variables.

...To make this append, you should activate logger. To do so, add this in your configuration.yaml:

# Enable the logger integration
logger:
    default: error
    logs:
        custom_components.spaclient: info

...restart Home Assistant, the home-assistant.log will show information regarding your setup.

enkrypt3d commented 2 years ago

Good to hear!

To help develop this component, can you share your spa setup? See the printout in home-assistant.log ... in particular the sections Information variables and Configuration variables.

...To make this append, you should activate logger. To do so, add this in your configuration.yaml:

# Enable the logger integration
logger:
    default: error
    logs:
        custom_components.spaclient: info

...restart Home Assistant, the home-assistant.log will show information regarding your setup.

Here is the log file - hope this helps!

2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] ====================== 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] << socket variables >> 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] ====================== 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.is_connected = True 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.l = <unlocked _thread.lock object at 0xb065c698> 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.s = <socket.socket fd=26, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.1.X', 50522), raddr=('192.168.1.X', 4257)> 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.host_ip = 192.168.1.127 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] ============================= 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] << Status update variables >> 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] ============================= 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.hold_mode = False 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.priming = False 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.current_temp = 103 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.hour = 17 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.minute = 50 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.heat_mode = Ready 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.temp_scale = Fahrenheit 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.filter_mode = 0 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.time_scale = 12 Hr 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.heating = 0 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.temp_range = High 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.pump1 = Off 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.pump2 = Off 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.pump3 = Off 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.pump4 = Off 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.pump5 = Off 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.pump6 = Off 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.circ_pump = 0 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.blower = 0 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.light1 = False 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.light2 = False 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.mister = 0 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.aux1 = 0 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.aux2 = 0 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.set_temp = 103 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] =========================== 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] << Information variables >> 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] =========================== 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.information_loaded = True 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.model_name = BP7 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.cfg_sig = ff 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.sw_vers = 57.0 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.setup = 21 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.ssid = M100 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.heater_voltage = 240 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.heater_type = Standard 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.dip_switch = 0000001000000000 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] ============================= 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] << Configuration variables >> 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] ============================= 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.configuration_loaded = True 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.pump_array = [2, 0, 0, 0, 0, 0] 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.light_array = [1, 0] 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.circ_pump_array = [0] 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.blower_array = [0] 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.mister_array = [0] 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.aux_array = [0, 0] 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] ===================================== 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] << Module identification variables >> 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] ===================================== 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.module_identification_loaded = True 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.macaddr = 00:15:27:XX:XX 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.idigi_device_id = 00000000-00000000- 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] ============================= 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] << Filter cycles variables >> 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] ============================= 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.filter_cycles_loaded = True 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.filter1_hour = 10 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.filter1_minute = 0 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.filter1_duration_hours = 4 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.filter1_duration_minutes = 0 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.filter2_enabled = 0 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.filter2_hour = 17 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.filter2_minute = 0 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.filter2_duration_hours = 3 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.filter2_duration_minutes = 0 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] ====================================== 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] << Additional information variables >> 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] ====================================== 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.additional_information_loaded = True 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.low_range_min = 50 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.low_range_max = 99 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.high_range_min = 80 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.high_range_max = 104 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const] self.nb_of_pumps = 1 2021-11-11 17:51:26 INFO (MainThread) [custom_components.spaclient.const]

plmilord commented 2 years ago

Thx! If there is something I can improve, let me know! For now, my next update will be to add programming capability for filter cycles. Not much time to devote to this project... but one day it will come!