Hello from a HomeSeer HS4 Refugee

By default, the Input Boolean value will be retained i.e. persist after an HA restart. If you want to change this behavior, use the “initial” option in the configuration to set it to what you want it to be after restart.

image

So in HS4, I used a plug-in called EasyTrigger to have my hot water pump turn on/off at specific times of the day. How is this automation accomplished in HA? I did a search and saw that someone suggested to use the Choose scripting option, but was not clear on the syntax in my situation. Here’s the EastyTrigger schedule that I would want to have the pump come on:

Any ideas on how I can create a schedule for turning on a device? I know I can create a few automations to do this, but wanted to do it in one.

A couple of options I found. Just installed the Scheduler Card via HACS and am playing with it.

Simple Scheduler:

Scheduer Card:

SimpleScheduler looks like exactly what I need. Let me know how it works for you. I’m also interested if you can set times based on certain days in one schedule or will that require two schedules to be created.

Since I run HA Core on Kubernetes, I cannot install SimpleScheduler. Head over to the forum thread on this add-on to discuss your questions. I’m currently fine with using yaml automations using sunset/sunrise and time triggers and conditions to perform my scheduled events.

Thanks, I can do that as well, but wanted to keep it in a single automation instead of having multiple automations based on certain days of the week.

Hi, just want to let you know that I’ve just released a new version with new features! Take a look!

Looks like a great add-on. Would you consider making this available as a docker image or including it as a HACS integration for those HA users like me that don’t run supervised HA and cannot use an add-on? Thanks

How does the concept of GlobalVariables work in HA? I have a script (below) that speaks when my doors are opened. It grabs the state of the opened door and stores it in a GlobalVariable to be used in speaking. How is this done in Home Assistant?

Sub Main(parms As Object)
	
	Dim zonerefs() As Integer = {124,125,126,127,128}
	Const DeviceNamePrefix As String = "Security EnvisaLink"
		
	For each zoneref As Integer in zonerefs
	If ((hs.devicevalue(zoneref) = "1") and (hs.DeviceTime(zoneref) < "1")) then
		hs.CreateVar("zoneopened") 
		hs.SaveVar("zoneopened",hs.devicename(zoneref).Replace(DeviceNamePrefix, String.Empty))
		hs.Speak("The $$GLOBALVAR:zoneopened: was just opened")
	End if
	Next
	 
End Sub

Hello fellow HS refugees!
Completely transitioned from HS after using it for years and investing $$$. HS4 and the lack of activity on the forums from Rich and other long time users had me worried. HA is mostly dialed in and have ZWave, BlueIris, Ubiquiti Wifi presence, Oregon Scientific sensors using an SDR (moved away from the flakey RFXCOM), NUT, mysensors Arduino devices, etc. up and running.

Anyway, one thing stumped me for the longest time and thought it might be good to share with other refugees. There was a very basic feature of Zwave on HS… on last level… but how do you do this in an automation? Initially I was using activity type “Device” as the action, but by using type “Service Call” with service “Light: Turn on”. This effectively performs the same action as “On last level” from HS.

Searched the forums and couldn’t find a solution, hopefully it helps someone.

Global variables don’t exist yet in HA. But there are a few alternatives. You could use the built in Input Text integration or the hass-variables custom component. Here are a few threads for discussion. Thread1 Thread2 Thread3. You can also use MQTT topics to store “variables”. This is what I use since I’m using MQTT extensively.

I’ve also used MQTT topics and that works well. And Node-RED has global variables you can set and query, if you want to go that route.

As mentioned, Home Assistant doesn’t currently support the concept of global variables. However, what you want to achieve doesn’t require a global variable in Home Assistant.

For example, you can create a Template Sensor that dynamically reports the names of entities that are on (i.e. open). Here’s one I use to report open doors. It also has an attribute called qty that reports the quantity of open doors.

sensors:
- platform: template
  sensors:
    doors_open:
      friendly_name: 'Open Doors'
      value_template: >
        {{ expand('group.doors_all')
        | selectattr('state', 'eq', 'on')
        | map(attribute='name')
        | list | join(', ') }}
      attribute_templates:
        qty: >-
          {{ expand('group.doors_all')
          | selectattr('state', 'eq', 'on')
          | list | count }}

It references group.doors_all which contains other groups (group.doors_interior, group.doors_exterior).

The resulting sensor.doors_open can be used in scripts and automations to report open doors. Here’s a simple automation that periodically reports any doors left open in the evening:

- alias: 'Scheduled Door Monitor'
  id: scheduled_door_monitor
  description: 'Report open doors in the evening'
  variables:
    qty: "{{ state_attr('sensor.doors_open', 'qty') }}"
  trigger:
  - platform: time
    at:
    - '20:55:00'
    - '21:55:00'
    - '22:55:00'
  condition: "{{ qty > 0 }}"
  action:
    - service: rest_command.speak
      data:
        audio_clip: 1
        content: >
          {% set plural = 's' if qty > 1 else '' %}
          {% set prep = 'are' if qty > 1 else 'is' %}
          Attention, there {{prep}} {{qty}} door{{plural}} left open,  
          {{' and '.join(states('sensor.doors_open').rsplit(', ', 1))}} door{{plural}},  
          {{prep}} open.
        content_type: 'text'
        volume: 80

The template is designed to produce a grammatically correct phrase because it’s intended for TTS. There’s an added touch that includes the word “and” in the appropriate place when there are two or more entities (for more information, see this post: Apples, oranges, and bananas). The template will produce phrases like this :

Attention, there are 3 doors left open, Front, Rear, and Garage doors are open.

Attention, there is 1 door left open, Rear door is open.

2 Likes

Just stumbled on this thread searching for HA and kubernetes support; very similiar story to others. I started using HS since HS1 around 2001 to automate some original X11 lighting for some pets, then upgraded through HS4 over the years and spent loads of money on upgrades and plugins. However last year transitioned everything entirely over to HA and have been very happy. The absolutely rock solid integration with Google Assistant and their devices has been wonderful.

While automations took a bit of getting used to after HS and their Events were pretty simple, I’ve realized how much more powerful they are. I think I see a few familiar faces in here as well since I was a member of the HS forum since 2002 under a different username. I used to write plugs for HS2 back in the day, and been tempted to get my feet wet again with some integrations :slight_smile:

Welcome to HA and this thread. I started using HA on Docker but transitioned last year to Kubernetes , specifically k3s with Rancher and Longhorn. See this thread for the details. It’s been rock solid. I still have most of my ZWave network on HS3 and use the HomeSeer Custom Integration for HA. I hear good things about the ZWaveJS integraton but will wait for it to mature a little bit more before moving from HS3.

1 Like

Thanks! I’ve got HA running on a Dell all-in-on miniPC and runs great, but have a 12 node kubernetes setup I’ve been toying with moving it too. However it’s an arm64 cluster, so a bit limited on some of the helm charts I wanted to use and have to go a different route with deployments. I wish I had seen k3os before I installed Ubuntu on all my nodes over the last 6 months. I am on the fence about moving HA over to k8s as have been spoiled by Supervisor. I am definitely going to have to check out your thread on this, thank you :slight_smile:

I moved everything entirely over, and retired my old HS Z-NET devices last year. While some things for me over the years have been solid (like Insteon and Zigbee), Zwave for me with about a dozen nodes has always been hit or miss even with HS, and a single HA and Z-Wave JS with a USB Zwave stick replacing the two Z-Net devices I had been running with similar if not the same performance.

I was initially a bit worried as started around the 0.1xx days, and things broke every release. However while it still occasionally happens (like Insteon broke with 2021.7.0), the community here being so much larger meant there were manual fixes within a few days, and 2021.7.3 pushed the fix this am. With HS I’d get frustrated as while (overall) upgrades went well, if something broke, it could be months, if ever before things were fixed. The lack of focus on security was also a battle that happened for YEARS. I was pleasantly surprised when firing up HA that no only was adding certs simple (with several options), native 2fa was built in without having to beg for it. After the 2021.7.0 upgrade I missed the breaking change about whitelisting proxy referrers, and this tripped me up a bit, but yet again another example of HA looking how to make things more secure which I suspect will never be on the HS radar. Now to get some U2F Fido support :smiley:

Lastly as I mentioned in my previous post, the Google Assistant integration (well Nabu Casa cloud) was the final nail in the coffin for me. I had nothing but problems with HS3 and HS4 with “I cannot talk to Homeseer right now”, to the point it became a joke with my family. No end of forums posts for help and such and other people going “Me too!” and every couple weeks “See if this fixes it”. I can count on one hand in the last year+ with HA how many times I heard that with HA, it’s $5 a mos for me is totally worth it.

I honestly loved them and filled the automation niche for me for years, but the shear quantity of integrations, it’s all open source (so no more fears of what if HS folds, or a developer passes away which has happened in HS), and the lack greed of the 3rd party developers here for major upgrades is really really nice. Ok, done bashing HS for now.

A post from Rich, the owner of HST:

https://forums.homeseer.com/forum/homeseer-products-services/system-software-controllers/hs4-hs4pro-software/1485154-an-update-from-the-owner-of-homeseer

Yeah, read it yesterday. Sad story :’(
Damn, that concordseer guy is really an ass, even ‘hijacking’ that thread.

1 Like

Yeah, he tried to go after me a while back for starting this thread. I just put people like that on ignore.

2 Likes