Announcement

Collapse
No announcement yet.

device string......

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    device string......

    the following worked just fine in Homeseer 3
    now in Homeseer 4 I get the following errors
    what am I missing other than Device String is now showing under device properties

    Event

    &hs.WriteLog "Kitchen FRIDGE" , hs.devicestring ("2135")

    Log file


    Running script(2) &hs.WriteLog "Kitchen FRIDGE" , hs.devicestring ("2135"), init error: Syntax error

    #2
    Searching on "DeviceString" would yield a lot, including this:

    https://forums.homeseer.com/forum/ho...-string-in-hs4

    Hope this helps.

    Comment


      #3
      This might be relevant: https://forums.homeseer.com/forum/ho...-string-in-hs4

      Comment


        #4
        nope !

        1 read through all 4 pages, and read through the Doc's ( no examples anywhere to learn from ) now I have a headache
        i struggle so much with scripting
        what i was doing in hs3 is it not possible in hs4 ?

        Comment


          #5
          Try taking the quotes from around 2135. The parameter should be a Device Ref as an integer, not a string
          tenholde

          Comment


            #6
            Should the proper syntax be:

            Code:
            &hs.WriteLog ("Kitchen FRIDGE" , hs.devicestring (2135))
            tenholde

            Comment


              #7
              Originally posted by tenholde View Post
              Should the proper syntax be:

              Code:
              &hs.WriteLog ("Kitchen FRIDGE" , hs.devicestring (2135))
              I've been doing some testing &reading here myself. Those 4 pages did not help me either.
              Here is what I have so far...
              Click image for larger version

Name:	Testing.PNG
Views:	323
Size:	313.9 KB
ID:	1409187
              Click image for larger version

Name:	Testing - log.PNG
Views:	306
Size:	165.0 KB
ID:	1409188
              HS4 Pro Edition 4.2.5.0 running on Lenovo ThinkCenter & Debian Linux
              Plugins: Z-Wave (via Nortek USB stick

              Home Assistant 2021.10.6 running on HA "Blue" ODROID-N2
              Add-ons: Android Debug Bridge, Duck DNS, ESPHome, File Editor, Glances, HA Google Drive Backup, InfluxDB, Log Viewer, MariaDB, Mosquitto broker, NGINX SSL Proxy, Node-RED, Portainer, SSH & Web Terminal, Samba, TasmoAdmin, UniFi Controller, Visual Studio Code, WireGuard, Zigbee2mqtt, Z-Wave JS to MQTT
              Integrations: AccuWeather, Alexa Media Player, Glances, Google Nest, HACS, HomeSeer, Insteon, IPP, Life360, Local IP, Logitech Harmony Hub, Mobile App, MQTT, My Garage, OpenWeather, Spotify, Tuya Local. Ubiquiti UniFi, Z-Wave JS
              Insteon: 2413S Dual Band PLM
              Zigbee: zzh! CC2652R Rev A
              Z-Wave: RaZberry daughtercard on RPi 1B via ser2net

              Comment


                #8
                Originally posted by tenholde View Post
                Should the proper syntax be:

                Code:
                &hs.WriteLog ("Kitchen FRIDGE" , hs.devicestring (2135))
                i then get this message

                Running script(1) &hs.WriteLog ("Kitchen FRIDGE" , hs.devicestring (2135)), init error: Cannot use parentheses when calling a Sub





                Comment


                  #9
                  This is in a script and not immediate command?
                  HS4 Pro Edition 4.2.5.0 running on Lenovo ThinkCenter & Debian Linux
                  Plugins: Z-Wave (via Nortek USB stick

                  Home Assistant 2021.10.6 running on HA "Blue" ODROID-N2
                  Add-ons: Android Debug Bridge, Duck DNS, ESPHome, File Editor, Glances, HA Google Drive Backup, InfluxDB, Log Viewer, MariaDB, Mosquitto broker, NGINX SSL Proxy, Node-RED, Portainer, SSH & Web Terminal, Samba, TasmoAdmin, UniFi Controller, Visual Studio Code, WireGuard, Zigbee2mqtt, Z-Wave JS to MQTT
                  Integrations: AccuWeather, Alexa Media Player, Glances, Google Nest, HACS, HomeSeer, Insteon, IPP, Life360, Local IP, Logitech Harmony Hub, Mobile App, MQTT, My Garage, OpenWeather, Spotify, Tuya Local. Ubiquiti UniFi, Z-Wave JS
                  Insteon: 2413S Dual Band PLM
                  Zigbee: zzh! CC2652R Rev A
                  Z-Wave: RaZberry daughtercard on RPi 1B via ser2net

                  Comment


                    #10
                    Try &hs.WriteLog "Kitchen FRIDGE" , hs.devicestring (2135)
                    HS4 Pro Edition 4.2.5.0 running on Lenovo ThinkCenter & Debian Linux
                    Plugins: Z-Wave (via Nortek USB stick

                    Home Assistant 2021.10.6 running on HA "Blue" ODROID-N2
                    Add-ons: Android Debug Bridge, Duck DNS, ESPHome, File Editor, Glances, HA Google Drive Backup, InfluxDB, Log Viewer, MariaDB, Mosquitto broker, NGINX SSL Proxy, Node-RED, Portainer, SSH & Web Terminal, Samba, TasmoAdmin, UniFi Controller, Visual Studio Code, WireGuard, Zigbee2mqtt, Z-Wave JS to MQTT
                    Integrations: AccuWeather, Alexa Media Player, Glances, Google Nest, HACS, HomeSeer, Insteon, IPP, Life360, Local IP, Logitech Harmony Hub, Mobile App, MQTT, My Garage, OpenWeather, Spotify, Tuya Local. Ubiquiti UniFi, Z-Wave JS
                    Insteon: 2413S Dual Band PLM
                    Zigbee: zzh! CC2652R Rev A
                    Z-Wave: RaZberry daughtercard on RPi 1B via ser2net

                    Comment


                      #11
                      Originally posted by dbrunt View Post
                      Try &hs.WriteLog "Kitchen FRIDGE" , hs.devicestring (2135)
                      i get this error
                      &hs.WriteLog "Kitchen FRIDGE" , hs.devicestring (2135), init error: Syntax error

                      Comment


                        #12
                        Originally posted by sirbooker View Post

                        i get this error
                        &hs.WriteLog "Kitchen FRIDGE" , hs.devicestring (2135), init error: Syntax error
                        vb script or immediate/script command?
                        HS4 Pro Edition 4.2.5.0 running on Lenovo ThinkCenter & Debian Linux
                        Plugins: Z-Wave (via Nortek USB stick

                        Home Assistant 2021.10.6 running on HA "Blue" ODROID-N2
                        Add-ons: Android Debug Bridge, Duck DNS, ESPHome, File Editor, Glances, HA Google Drive Backup, InfluxDB, Log Viewer, MariaDB, Mosquitto broker, NGINX SSL Proxy, Node-RED, Portainer, SSH & Web Terminal, Samba, TasmoAdmin, UniFi Controller, Visual Studio Code, WireGuard, Zigbee2mqtt, Z-Wave JS to MQTT
                        Integrations: AccuWeather, Alexa Media Player, Glances, Google Nest, HACS, HomeSeer, Insteon, IPP, Life360, Local IP, Logitech Harmony Hub, Mobile App, MQTT, My Garage, OpenWeather, Spotify, Tuya Local. Ubiquiti UniFi, Z-Wave JS
                        Insteon: 2413S Dual Band PLM
                        Zigbee: zzh! CC2652R Rev A
                        Z-Wave: RaZberry daughtercard on RPi 1B via ser2net

                        Comment


                          #13
                          immediate/script command

                          Comment


                            #14
                            For the hell of it, can you try
                            Code:
                            &hs.WriteLog("Kitchen FRIDGE",hs.CAPIGetStatus(2135).Status)
                            HS4 Pro Edition 4.2.5.0 running on Lenovo ThinkCenter & Debian Linux
                            Plugins: Z-Wave (via Nortek USB stick

                            Home Assistant 2021.10.6 running on HA "Blue" ODROID-N2
                            Add-ons: Android Debug Bridge, Duck DNS, ESPHome, File Editor, Glances, HA Google Drive Backup, InfluxDB, Log Viewer, MariaDB, Mosquitto broker, NGINX SSL Proxy, Node-RED, Portainer, SSH & Web Terminal, Samba, TasmoAdmin, UniFi Controller, Visual Studio Code, WireGuard, Zigbee2mqtt, Z-Wave JS to MQTT
                            Integrations: AccuWeather, Alexa Media Player, Glances, Google Nest, HACS, HomeSeer, Insteon, IPP, Life360, Local IP, Logitech Harmony Hub, Mobile App, MQTT, My Garage, OpenWeather, Spotify, Tuya Local. Ubiquiti UniFi, Z-Wave JS
                            Insteon: 2413S Dual Band PLM
                            Zigbee: zzh! CC2652R Rev A
                            Z-Wave: RaZberry daughtercard on RPi 1B via ser2net

                            Comment


                              #15
                              Originally posted by sirbooker View Post
                              immediate/script command
                              In an event or at the control panel?

                              When I run that in control panel I see nothing on the screen but this is logged:

                              Click image for larger version

Name:	error log.PNG
Views:	300
Size:	33.7 KB
ID:	1409249
                              which doesn't jibe with the error you say you see.
                              I'm not in front of your system so I've really no idea exactly what you're doing.
                              Additional info is required on this end. Some pictures would help.......

                              HS4 Pro Edition 4.2.5.0 running on Lenovo ThinkCenter & Debian Linux
                              Plugins: Z-Wave (via Nortek USB stick

                              Home Assistant 2021.10.6 running on HA "Blue" ODROID-N2
                              Add-ons: Android Debug Bridge, Duck DNS, ESPHome, File Editor, Glances, HA Google Drive Backup, InfluxDB, Log Viewer, MariaDB, Mosquitto broker, NGINX SSL Proxy, Node-RED, Portainer, SSH & Web Terminal, Samba, TasmoAdmin, UniFi Controller, Visual Studio Code, WireGuard, Zigbee2mqtt, Z-Wave JS to MQTT
                              Integrations: AccuWeather, Alexa Media Player, Glances, Google Nest, HACS, HomeSeer, Insteon, IPP, Life360, Local IP, Logitech Harmony Hub, Mobile App, MQTT, My Garage, OpenWeather, Spotify, Tuya Local. Ubiquiti UniFi, Z-Wave JS
                              Insteon: 2413S Dual Band PLM
                              Zigbee: zzh! CC2652R Rev A
                              Z-Wave: RaZberry daughtercard on RPi 1B via ser2net

                              Comment

                              Working...
                              X