Jump to content

Blinds integration question


firstone

Recommended Posts

Posted

I have z-wave blinds that come up in HA as lights. Not super big deal but was wondering if it's possible to reconfigure it in HA somehow? I guess ISY itself doesn't support it in very blind like fashion but still I see more commands in AC than just on/off. Specifically Fast On/Off.

Here's the node:

 

<nodeInfo>
	<node flag="128" nodeDefId="ZY014_1">
		<address>ZY014_1</address>
		<name>Blind</name>
		<family>12</family>
		<parent type="3">56572</parent>
		<type>4.17.7.0</type>
		<enabled>true</enabled>
		<deviceClass>0</deviceClass>
		<wattage>0</wattage>
		<dcPeriod>0</dcPeriod>
		<startDelay>0</startDelay>
		<endDelay>0</endDelay>
		<pnode>ZY014_1</pnode>
		<rpnode>ZY014_1</rpnode>
		<sgid>1</sgid>
		<custom flags="192" val1="0"/>
		<devtype>
			<gen>4.17.7</gen>
			<mfg>622.21075.23089</mfg>
			<cat>107</cat>
		</devtype>
		<property id="ST" value="100" formatted="100%" uom="51"/>
	</node>
	<properties>
		<property id="BATLVL" value="" formatted=" " uom="0"/>
		<property id="ST" value="100" formatted="100%" uom="51"/>
	</properties>
</nodeInfo>

 

Posted (edited)

How are you running Home Assistant?

Depending on how it's installed I can give you an easy way to test changing it to a cover.

This line should be changed to add "107" (with quotes) between the brackets.

That will assign it as a cover instead of trying to guess based on the states.

Edited by shbatm
  • Like 1
Posted

If you can open a console on the VMware instance, the file can be changed here:

# from regular command prompt, go into docker:

docker exec -it homeassistant bash

# edit the file here

vi /usr/src/homeassistant/homeassistant/components/isy994/const.py

 

If you have no idea what the above is talking about... I'll push an update to Home Assistant for you to try when I get a chance.

Posted (edited)

I have some idea but don't think I have a file there:

 

[core-ssh src]$ pwd
/usr/src
[core-ssh src]$ ls
[core-ssh src]$ ls -la
total 12
drwxr-xr-x    2 root     root          4096 Aug  2  2022 .
drwxr-xr-x    1 root     root          4096 Aug 29 12:56 ..

I don't think I'm running anything in docker. Is docker running within vm instance? Kind of getting confused here. 

Edited by firstone
Posted (edited)

You won't be able to get there from the ssh add-on. It has to be through the VMware Remote Console or ssh to the host itself

And yes Home Assistant is running inside docker inside the VM.

 

Edit: if you want the full nerdy version:

Home Assistant OS is the VM operating system that runs Home Assistant Supervisor, which is the Docker Hypervisor that runs the Home Assistant Docker container, the support containers (like dns) and all the addons. The core-ssh addon is just a docker container with access to the config directory and a few shared directories--it can't access the actual OS.

Edited by shbatm
Posted

How do I ssh into the host, without add-on? 

11 minutes ago, shbatm said:

You won't be able to get there from the ssh add-on. It has to be through the VMware Remote Console or ssh to the host itself

And yes Home Assistant is running inside docker inside the VM.

I'm assuming I still need to be inside window on VM instance, rather than ssh into VMWare host?  It still doesn't work:

image.png.8585c42ea517e2c6f0a9b0f510d6820b.png

Posted

Also, you'll need to restart Home Assistant after you change the file. And the change is temporary, if you upgrade HA it will be lost. This is just a test until I can make a permanent change.

Posted
5 minutes ago, shbatm said:

Also, you'll need to restart Home Assistant after you change the file. And the change is temporary, if you upgrade HA it will be lost. This is just a test until I can make a permanent change.

It worked and now I can select it as cover with correct icon and position instead of brightness. But there's a reason I've mentioned "Fast On" AC command - ever since upgrading to ZMatter, my blinds only open half way with On commands. But they do open full with Fast On. I guess node only has ST driver so not sure you can do anything about it. It's also possible On just sets Home position on blind but I don't know how to change it without enrolling original blind remote, which I don't really want to deal with.

Posted
2 hours ago, shbatm said:

Can you send me the results from:

http://eisy.local:8080/rest/zmatter/zwave/node/ZY014_1/def/get

(replace eisy.local:8080 with ip as needed)

<nodeDefs>
	<nodedef id="ZY014_1" nls="107">
		<sts>
			<st id="ST" editor="_51_0_R_0_101_N_IX_DIM_REP"/>
			<st id="BATLVL" editor="_51_0_R_0_100"/>
			<st id="ERR" editor="ZY_ERR" hide="T"/>
		</sts>
		<cmds>
			<sends>
				<cmd id="DON"/>
				<cmd id="DOF"/>
				<cmd id="FDUP"/>
				<cmd id="FDDOWN"/>
				<cmd id="FDSTOP"/>
			</sends>
			<accepts>
				<cmd id="DON">
					<p id="" editor="ZY_DIM_PERCENT" optional="T"/>
					<p id="RR" editor="ZY_RR" optional="T"/>
				</cmd>
				<cmd id="DOF"/>
				<cmd id="DFON"/>
				<cmd id="DFOF"/>
				<cmd id="BRT" native="F"/>
				<cmd id="DIM" native="F"/>
				<cmd id="FDUP">
					<p id="STARTLEVEL" editor="ZY_DIM_PERCENT" optional="T"/>
					<p id="RR" editor="ZY_RR" optional="T"/>
				</cmd>
				<cmd id="FDDOWN">
					<p id="STARTLEVEL" editor="ZY_DIM_PERCENT" optional="T"/>
					<p id="RR" editor="ZY_RR" optional="T"/>
				</cmd>
				<cmd id="FADE">
					<p id="DIR" editor="ZY_MLS_DIR"/>
					<p id="STARTLEVEL" editor="ZY_DIM_PERCENT" optional="T"/>
					<p id="RR" editor="ZY_RR" optional="T"/>
					<p id="DIR2" editor="ZY_MLS_DIR" optional="T"/>
					<p id="STEP2" editor="ZY_RR" optional="T"/>
				</cmd>
				<cmd id="FDSTOP"/>
				<cmd id="QUERY"/>
				<cmd id="WDU"/>
			</accepts>
		</cmds>
		<links>
			<ctl/>
			<rsp>
				<link linkdef="ASSOC" gid="ASSOC"/>
				<link linkdef="ASSOC_MC" gid="ASSOC"/>
				<link linkdef="BASIC" gid="BASIC"/>
				<link linkdef="BASIC_MC" gid="BASIC"/>
				<link linkdef="MLSW" gid="MLSW"/>
				<link linkdef="MLSW_MC" gid="MLSW"/>
			</rsp>
		</links>
	</nodedef>
</nodeDefs>

 

Posted (edited)

For changing the action on an entities card in the dashboard to call an action:

https://www.home-assistant.io/dashboards/actions/#hold-action

For a dedicated template switch it'll be something like this:

cover:
  - platform: template
    covers:
      blind_template:
        device_class: blind
        friendly_name: "Blinds"
        unique_id: "some-random-name"
        value_template: "{{ states('cover.blinds')|float > 0 }}"
        open_cover:
          service: isy994.send_node_command
          data:
            command: fast_on
            entity_id: cover.blinds
        close_cover:
          service: cover.close_cover
          data:
            entity_id: cover.blinds

 

Edited by shbatm
Posted

Looking at the node definition, you should also be able to send a position. So from a dashboard entity card you could use a double-tap to open all the way:

double_tap_action:
  action: call-service
  service: cover.set_cover_position
  data:
    entity_id: cover.blinds
    position: 100

Also, being Z-Wave, I'd be willing to bet you can Google the model for a list of parameters and find one to set the "home" or "default" position.

Posted
1 hour ago, shbatm said:

Looking at the node definition, you should also be able to send a position. So from a dashboard entity card you could use a double-tap to open all the way:

double_tap_action:
  action: call-service
  service: cover.set_cover_position
  data:
    entity_id: cover.blinds
    position: 100

Also, being Z-Wave, I'd be willing to bet you can Google the model for a list of parameters and find one to set the "home" or "default" position.

Awesome. Leaving new things about HA every day. I've only been using it for like whole week. 

 

I'm not having any success with ssh into the box set up though :( Created USB with authorized_keys, forward to machine. Nothing works.

Posted
14 minutes ago, firstone said:

I'm not having any success with ssh into the box set up though :( Created USB with authorized_keys, forward to machine. Nothing works.

You can add them manually from the same console you used before for the VM:

ha > login
# cd /root/.ssh
# vi authorized_keys

Reboot the VM after you save.

Posted
On 2/1/2023 at 2:41 PM, shbatm said:

You can add them manually from the same console you used before for the VM:

ha > login
# cd /root/.ssh
# vi authorized_keys

Reboot the VM after you save.

This works. Thank you. So when is it safe to update? Do I have to wait until some specific version to get this change?

Posted

@shbatmI couple of similar issues, unrelated to blinds though.

I have Schlage BE469 locks. They should up correctly as locks. But I don't think there's a way to see battery level. It's in main node in ISY.

Also, I have some aeontec trisensors, as well as multisensor 7 and the main node shows up as a light bulb for whatever reason. And I would also like to see battery level as well.

Want to set up notification routine for low battery. 

Guest
This topic is now closed to further replies.

×
×
  • Create New...