I have a states for new devices but no services, how do I create the services

Hi guys, new to HA and my setup is a basic Hass.io running on a pi4

In my house I’m currently using Sonoff and Tuya devices.
I have been able to hook up the Tuya devices via the Tuya plugins
I’ve also found a third party plugin for Sonoff
I’ve set this up and I can see the devices in the states menu but not in the services.
I can also turned the devices on and off in the main overview window

What I can do is run any kind of automation as I don’t see services for them.

I’m been looking for the last 2 hours and haven’t found anything yet on how to create missing services when you have states, I suspect I’m looking the wrong locations and help here would be great.

Sonoff plugin: https://github.com/peterbuga/HASS-sonoff-ewelink

Currently I’m using IFTTT to turn the Sonoff plugs On/Off and woudl like to bypass this

Define ‘create missing services’?

You can use the switch.turn_off, switch.turn_on, and switch.toggle services if these devices are switches.

1 Like

If I go to the page overview page I can see the Sonoff devices and flick the toggle switch.
If I then go to Developer tools > States I can see them in the “Current Entities list”
e.g.
Entity: switch.10009b0df9
State: off
device_id: 10009b0df9
rssi: -71
friendly_name: Alarmplug

but I can’t see them on the Developer tools > Services page in the drop down for services
I also can’t see them to select in automation tasks.

Does this answer you question?

Doh, you wouldn’t believe how long I have been looking for this.

Thanks you much.

Side question, is there a way to trace the account of the toggle switch on the Overview page as I thought I would be able to trace the event firing but couldn’t see it in the logs.

You won’t see the devices in Services without selecting a service first. That tool is for calling any available service. You can pass service data with that tool too but again, you won’t see your devices there unless you choose a service.

Edited for clarity.

Yeah you should:

1 Like

Yep, I headed down the wrong track and Tediores first post pointed back in the right direction.

Ta again everyone for a hand

Right, sorry. Should have specified “without selecting a service first.”

1 Like

Ah. I had a service selected there already so did not notice it disappeared without selecting one.